Validation within 2 form elements

Hi. Is there a way to validate between two form elements. Say, for example, I want to check if sale price being entered in form should be more than buy price. Can I do that?

Hi Paras,

welcome to the community!

Yes, you just have to edit the layout, select the element and scroll down in the submenu until you find the ‘Validation’ section.

There you can implement your validation logic.

Let me know if this helped!

Pablo

1 Like

Thank you Pablo. I hope this would not refer to the already existing last value in the table under buy price column since I want to reference it to the buy price value in the form itself.

This refers to the current value introduced by the user before it is submitted, but you could also refer to some already stored value

1 Like

Thank you. This is very useful.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.