Conditional logic to end form

Is there a way to have conditional logic to remove the form submission button?

I’d like if someone answers “No” to “Is child able to sit up unassisted?” for that to prompt “We would LOVE nothing more than to teach your child these invaluable water survival skills! Since your child isn’t sitting unassisted yet, they aren’t quite developmentally ready for swim lessons. Safety is our number one priority! Please come back once this developmental milestone has been met.” and effectively end the form. If they enter “yes” I’d like the form to continue.

1 Like

Welcome to the Community, @emilyhesslen :wave:

Yeah, it’s possible to implement. Please add this code to the Custom CSS field on the Appearance tab of your widget’s settings and let me know if it helped:

[class*="FormLayout__Container-sc"]:has([class*="FieldsGrid__Row-sc"]:last-child [class*="FormFieldLayout__Container-sc"] [class*="FormFieldLayout__Element-sc"]:first-child [class*='Paragraph__ParagraphControl-sc']) 
[class*="FieldsGrid__ButtonsGroup-sc"] {
  display: none;
}

We also have a request on the Wishlist to add the conditional logic for the Submit button to the settings. Feel free to upvote this idea here - Conditional logic for Submit button

Amazing, that worked. Thanks so much!

1 Like

Great, you’re welcome :slightly_smiling_face:

In the meantime, we’d like to remind about our Black Friday Giveaway, where you can win 1 FREE YEAR for any of your subscriptions :gift:

Check the details and join in - BF 2024 Giveaway: Win 1 YEAR of Free Usage (10 Winners) + guaranteed month