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

Question

Question

Miking a form field Required only if

asked on January 31, 2017

With reference to this post more than a year ago, I have a similar situation.

https://answers.laserfiche.com/questions/86204/make-a-field-required-when-another-field-is-not-empty

I would like to make one of two fields a Required field based on which choice the applicant makes in another field.  Below, I have clips of the fields in question.  The options that can be requested are different depending on which Hamlet they are from.  Apparently, what I want can only be done by using JavaScript, but I have no experience with that.  Can anyone help with the JavaScript coding?  The sample coding that was provided in the post that I mention above is just not close enough to my use-case-scenario to adjust with my limited experience.

Note:  Currently, I have the two fields hidden until they pick a Hamlet.  It's just the Required part I'm wanting and don't know how to do.

0 0

Answer

SELECTED ANSWER
replied on January 31, 2017

Hi Connie,

If you are just using simple text fields ( not a table ) you can do this without any scripting.
 

If you make all 3 of your fields required and then create field rules to only show the drop down for the selected Hamlet (keeping the other hidden) it will work.   You can submit the form without filling in a required field when it is hidden.

1 0

Replies

replied on January 6, 2023

Validate field as required or optional using field rules is supported in new form designer with Forms 11 Update 3.

You can see other changes of Forms 11 Update 3 from  https://support.laserfiche.com/kb/1014413/list-of-changes-for-laserfiche-forms-11-update-3 and get Forms 11 Update 3 from Laserfiche 11 package  https://support.laserfiche.com/kb/1014263/software-versions-and-fixes-included-in-the-laserfiche-11-download-package.

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

Sign in to reply to this post.