I have a multi-step form on my website. And on the first step, I simply have a checkbox for Passport Confirmation.
How do I edit the error message, so that when the “Continue to Submission” button is pressed but the checkbox is left unchecked, it displays a message that says “You must have a valid passport to submit”?
I created my own multi-step form from the options native to Wix. And I have not added any code yet because the code that I tried targeted the option itself and not the options response to the step-advance button being triggered.
I included the link above. Please feel free to ask more questions!!
As J.D. already tried to explain you, perhaps you should show the code, which you have already tried to generate, so everybody can try to understand what exactly you are trieying to achieve.
Although i do not really work with predefined wix-forms (because i generate all my elements in custom-mode), i assume that you will need to take a look onto the “Check-Box-Element” and its coding possibilities… https://www.wix.com/velo/reference/$w/checkbox
@misshazeljade Hi, customization of the form apps are quite limited. Maybe you can do with some apps. I can’t tell as I never use them (due to the lack of flexibility) and I always build my own forms using input elements (and text element for messages and alerts).
I suggest you do the same and install the @velo/wix-bulk-validation package to detect which field is not valid, use the custom validation as you did, and if it’s the passport field, $w("#passportMsg).expand() else $w("#passportMsg).collapse()