Clone Project

Set Field to Required when Visible

Created by
Similar Projects
Oops! Something went wrong while submitting the form.

0 Comments

Be the first to leave a comment.
Loading
User is typing...
No Name
Set
4 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
No Name
Set
2 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Load More
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More
Description:  
Description from Webflow:  
Happy Wednesday! In this project I created a way to toggled an input field as required or not required depending on its visibility. This is super handy if you only want a field to be required if the user needs it. I.e. Maybe you have a form with some conditional fields. Let's say you only want to collect someone's phone number IF they give you permission to contact them. You want the phone number to be required, but only if they give you permission to contact them. This allows the form to submit when the required phone number field is hidden, but prevents the submission if it's visible. Super handy! if you have any questions please leave a comment on the loom video here. https://www.memberstack.com/scripts/32-set-input-to-required-if-visible
Tags from Webflow: 
conditionallogic,  conditionalvisibility,  form,  forms,  customforms,  contact form,  multistepform,  multi-step form,  contactform,  formfields,  formvalidation,  contact forms,  formly,  advancedforms,  customform,  required,  smartform,  formbuilder,  jotform,  formspark,  formspree
.