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.
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
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
@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.