Quantcast

Best Practices: Showing and Hiding Form Fields

June 19, 2019 in Product Tips & Updates |
No Comments

When designing Forms in Laserfiche it is important to take screen real estate into consideration. You could show or hide fields based on a previous selection. For example, you have a New Hire On-boarding form with a question “Do you want Direct Deposit?” where the user selects “yes” or “no”. If the user selects “yes” additional fields appear for the user to enter bank account information. If the user selects “no”, there is no need to show the other field(s). In order to do this, you would first need to create Field Rules. Here is how you do that:

Creating Rules to Show or Hide Fields

Field rules determine how fields will interact in the form and allow you to show or hide fields based on conditions. The number, to the left of the rule, represents the order of evaluation of multiple rules. A larger number overrides a smaller number.

To create a field rule

  1. Open a form in the form designer and click Field Rules.
  2. Click New Field Rule.
  3. In the first row, select Show or Hide from the first drop-down menu and select the field you want displayed or hidden from the second drop-down.
  4. Save or ignore the data in the field when it is hidden using the following options:
    1. Ignore the data when the field is hidden: Select this option to not retain the data in the field. For example, a form has an Age field and a Parent Signature field. The form designer can ignore the parent signature data if the user is 18 or older, because the data is valuable only when the user is underage. In this case, the form designer would select this option to ignore the data, making the field value blank when submitted. Because the field is ignored, when the form is being validated for configuration errors, the Forms service does not check that the field is configured correctly.
    2. Save the data when the field is hidden: Select this option to retain the data in the field. For example, a form has two shown Number fields and one hidden Number field. The form designer wants to retain the sum of the two shown Number fields in a hidden Number field and then save the result in the hidden Number field. In this case, the form designer would select this option to save the data. Because the field data is saved, the Forms service still checks that the field is configured correctly when the form is being validated for configuration errors.
  5. In the second and third rows, define the rule to hide or display the specified field. Click the plus sign to add multiple rule definitions or x to remove a rule definition.
  6. When you are finished, click Save.

Here is another example where a user could request additional information about a company.

User selects “yes”, the Contact Information field appears
User selects “no”, the Contact Information field stays hidden

Please see Forms Video Tutorials (scroll down to “Showing and Hiding Form Fields“)

Show Buttons
Hide Buttons
Read previous post:
City of Lemon Grove – 2019

"I worked with Karen Pho for 4 hours last week and wanted to let you know that she is awesome. ...

City of San Luis Obispo – 2018

"My experience with ECS has been great. Every time I call in, I get somebody on the other line. It...

San Bernardino County Public Works – 2018

I wanted to thank you on behalf of Miss Charis and I for inviting us to attend the ECS Imaging...

Twin Rivers Unified School District – 2018

I wanted to take a moment to say that ECS Imaging is an awesome company to work with and to...

City of Santa Paula – 2017

"I just wanted to take a moment to commend and offer kudos for the professionalism and knowledge which Karen Pho...

City of Cupertino – 2016

“What I like most about Laserfiche is being able to actually find things very quickly.” -Carmen Lina https://youtu.be/wIaf6Oonv0w

Contra Costa County Public Works – 2016

“What I find useful [about Laserfiche] is pretty much everything. We use it for all of our many records in...

Contra Costa County Public Works – 2016

“I found ECS Imaging to be really wonderful to work with, everybody on their staff has been very nice, helpful,...

City of Clovis Police Department – 2016

“The [ECS Annual] Conference has actually helped us just get a little bit more details on how to best use...

Webinar: Storage in a World of Regulatory Changes

When: June 19, 2019 @ 10 AM PST Register Here Hosted by Nexsan. The list of compliance regulations is increasing,...

Close