Please help me: Checkbox and Submit

I am trying to set my form in a way that, when the checkbox is clicked, the submit button takes the user to another app I already made and if it is not clicked, it just says "Form submitted successfully"

I think a good approach would be to have a js script on the submit action to validate the form has been filled in correctly, and if the checkbox is ticked you call openApp and use the submitted data on the new page (using maybe url params or local storage) and if the checkbox isn't ticked you do your usual save action using trigger()

Can you please help me with the JS script? I am a newbie with no coding experience, trying Retool.

Something like this, but I'd add in some checks to the form is valid as well

1 Like

Thank you so much, @dcartlidge. It worked.
You are my hero.

1 Like