You are viewing limited content. For full access, please sign in.

Question

Question

Required Field only if One other item is filled in on the Section

asked on July 5, 2019 Show version history

Is there any way to have the License Plate # field be required ONLY if anything else on the Vehicle Descriptions Section is filled in?

 

0 0

Replies

replied on July 5, 2019 Show version history

There's no built-in way to make a field conditionally required, however, there are two ways that it can be done.

  1. Custom JavaScript
  2. Field Rules

As a follow up question, do you need License Plate to be available even if it is not required? If not, then Option 2 should be very easy.

  1. Set License Plate as Required
  2. Set a Field Rule to Show License Plate when any of the associated fields are not empty

A required field that is hidden is ignored by the validation, so it will only be required for submission if it visible on the form.

2 0
replied on July 8, 2019

I will try that thanks!!  I always thought that if you hid a required field that the form would not work.  

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.