Is it possible to set a lightbox not to close at all?
For example, if a field is not filled in and they click the ‘submit’ button’, I do not want the lightbox to close.
Is it possible to set a lightbox not to close at all?
For example, if a field is not filled in and they click the ‘submit’ button’, I do not want the lightbox to close.
@alloutapparel
Start the lightbox with disabling the Submit button, then you can add a verification for fields states, if all fields are valid then enable the submit button.
First you must start with the lightbox settings:
Disable overlay click to close
Disable X click to close
Disable close button click to close
Assuming you have a form connected to a dataset:
Update input element settings
Set all inputs as Required
No need to disable your submit button
Assuming you have a coded form:
Disable submit button
Add validation code for the input elements
Enable button via code after validation is confirmed
Links that will help you:
#codequeen