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

Question

Question

Make a field required when the form reaches a specific User Task in the form's Process flow

asked on January 31, 2020 Show version history

I'd like to dynamically make several fields required based on where the form is in the process.  I have an inclusive gateway that can route the form to three different groups, each of which will have their own required fields to fill out, so I'd like to make those fields required only when the form reaches that group.

So, for example:

Fields for Group A are only required when the task is "Group A task".

Fields for Group B are only required when the task is "Group B task".

etc.

Alternatively, I can make all of the necessary fields required, and hide them until the form reaches the appropriate group's task.  

Is this possible with Javascript?

If so, can someone provide sample code?

thank you.

 

0 0

Replies

replied on January 6, 2023

Validate field as required based on process step is supported with new form designer in 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
replied on January 6, 2023

Thank you.

0 0
replied on February 3, 2020

You should be able to make three different copies of the same form in your process, then depending on which group it goes to, have the fields required on their form. Since the variable names of the fields are the same they should auto fill in no matter what stage in the process.

0 0
replied on February 3, 2020

Thank you for your response.  I am familiar with making copies of forms in order to have different fields show/hide, etc.  I was just hoping there was a way in javascript to accomplish something similar without making multiple copies of the form since that's more of a headache to maintain.

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

Sign in to reply to this post.