You are viewing limited content. For full access, please sign in.

Question

Question

condition on submitting forms

asked on November 18, 2020 Show version history

I was wondering if I can disable the submit button until two fields have the same value.
For example I have total amount and total paid amount that needs to be equal.

0 0

Replies

replied on November 19, 2020

Without coding your own module for this in javascript, I think it could be done using a calculation and the IF method.

You can use an IF Else statement to put a valid value into a field or an invalid value.

For example a number field with a range of 0-1 could be populated with 0 when the fields match or 2 when the fields do not match.

You can't submit a form when a field has an invalid value.

This field could be hidden, and a field rule could be used to show a proper message letting them know why they can not submit.

 

0 0
replied on November 22, 2020

I tried to do this but I cant apply a field rule on the Submit button, Any idea?

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.