I'm creating a form where I need the lead to fill out at least one of two fields. Is there a way to make them required based on the value of the other field? For example, they need to give us value A and/or value B.
Solved! Go to Solution.
Use the code from the JS pane at
Just set the field names, the min/max non-empty fields (min of 1 and max of Infinity in the case you described), and error message, as in the demo.
To be clear, two Text type fields?
They are Number fields. We also use Salesforce if that makes any difference.
Use the code from the JS pane at
Just set the field names, the min/max non-empty fields (min of 1 and max of Infinity in the case you described), and error message, as in the demo.