Connecting Lightbox to UserForm to Dataset

I have created a form whereby applicants can fill in their information for a programme and then press submit to confirm their submission. I have managed to successfully connect my Dataset to my Form. However, when applicants are done filling out their information, I want them to press submit and have that submit button direct them to a lightbox whereby they will agree to my Terms and Conditions and then officially and successfully submit their application. I know how to connect the button to the lightbox, but then the submit button would not connect to my “Submit” Dataset upon the information they have filled out on the form.

Can anyone help me in a way to connect my lightbox to my form to my dataset all together?

Much Appreciated!!! Thanks in advance!

Hi,

A lightbox can receive and return data.
This means that you can use the submit button to open the lightbox, then according to the returned data (Agreed/not agreed) either submit or perform a different action.

To achieve that:

First, since you will be using code to submit, you must disconnect the “submit” button from the dataset if you are using one.

Use getContext to read the data from the lightbox page.

Then use close() with the result to return it back to the page.

I would love to see a video of this especially as i keep getting upgrade emails and this is a feature i’d like to work for me

I’ve been wondering similarly to you, how to set up a smooth flow where users are directed from a form to the Terms and Conditions page from which their whole application is submitted. Can we request Wix product developers to install more customizable features on Wix where we can seamlessly move from one page to the other from that initial page, like from the form to the Terms and Conditions page in your example? I have heard that Wix product developments are based on numbers, so if many people request this smooth flow from one page to the next or linking of a Wix form to the Terms and Conditions page and then to its Submit button, then it’ll probably be done. We really need to have an easy way to direct users from any page, like a Wix form, straight to the Terms and Conditions page, built into the initial page or Wix form in this example. Who could help with this smooth flow between pages built into the Wix website as a new product feature?

so on my page code i have added the following to see if this will pick up my lightbox without parsing errors. The button is enabled as an on click event. Is this correct?