Skip to main content
Solved

Forms Q: Conditional but also required fields

  • March 18, 2021
  • 1 reply
  • 67 views

If I set a field to be required AND only visible under a specific condition and that condition is not met, will it stop the form from submitting because a hidden field is set as required?

It sounds stupid, but I literally ran into this only a couple months ago elsewhere with a form builder product that will go unnamed… but it wasn’t smart enough or well engineered enough to know that if a field is hidden, it shouldn’t be required unless it is visible no matter what. So then it would output a validation error telling people “You need to fill in field XXXXX” and they can’t see the field or even know it exists. Super poor UX there.

I could probably test this and find out but I figure I’ll ask here in case there’s something functional I may be overlooking or additional info.

Best answer by ScottWorld

Welcome to the community, @Rory_Hurlburt1!

That won’t be a problem. Only visible fields will enforce their requirement to be filled in.

1 reply

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • 9770 replies
  • Answer
  • March 18, 2021

Welcome to the community, @Rory_Hurlburt1!

That won’t be a problem. Only visible fields will enforce their requirement to be filled in.