I want to validate a field with the value from an other field in the Create/UpdateAction. I tried the following:
buildCo2Producer co2Producer =
co2Producer
|> fill @["commonSingleConsumptionFrom", "commonSingleConsumptionTo"]
|> validateField #commonSingleConsumptionFrom (isGreaterThan 0)
|> validateField #commonSingleConsumptionTo (isGreaterThan $ get #commonSingleConsumptionFrom co2Producer)
I wish #commonSingleConsumptionTo to be greater than #commonSingleConsumptionFrom, but no matter what I enter in the form, #commonSingleConsumptionFrom is always 0 in this validation.