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

Question

Question

How to Set Required Fields Based on Drop Down Selection (Single Row & Table)

asked on February 2, 2017

I have a form where the default is for fields to be required, UNLESS, a specific value is selected in the drop down menu (in this case Re-inspection). 

How do I turn off a required field on a single column and a table when my drop down menu selects Re-inspection?

Here is a screenshot of the situation.

Thanks in advance

 

0 0

Replies

replied on February 2, 2017

You can probably use javascript to make it cleaner but I have handled similar situations buy adding columns to the table.  Basically add 3 more columns for a total of 6.  They can have the same name as their required counterparts but make their variables names indicate if they are required or not.

Then use built in Show/Hide field rules.  Show the required column if the drop down equal <value>  Show the non required columns if the drop down value equal <other value>

0 0
replied on February 2, 2017

Thanks for the input! I'm writing to a database, so maybe I'll wait until someone can help with the Javascript.

0 0
replied on February 2, 2017

If no one chimes in writing to a database from Workflow should not have anything to do with the Form.  Just need a couple Routing Decisions to check what the drop down value is and then pull from the different fields on the Form depending.

0 0
replied on July 23, 2019

@████████, were you able to figure this out?

0 0
replied on July 23, 2019

nope!

0 0
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.

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

Sign in to reply to this post.