Hi everyone!
I have created a form that has a main field that is NOT required. However, when the user does fill that field up, the succeeding fields are then required. (i.e. Purchasing Officer (if filled out); then, PO Email and PO Contact No.
Has anyone created a similar form? I'd appreciate your help with this.
you need to set the .required state of the other input fields when the first field has a value.
In the code section of the page, set an event via the properties panel for the "main field" and in that when
if ( $w("#mainfield").value != "") {
$w("#POEmailInput").required);
etc..
}
something like using
https://www.wix.com/corvid/reference/$w.Dropdown.html#required