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

Question

Question

Can Fields or Sections of a Field be Hidden / Shown based on the Process Modeler Task?

asked on November 26, 2015

I have a Form with 5 Sections.

Each section needs to be filled out by 5 different people.

Therefore I have created 5 User Tasks in Process Modeler, and I have 5 forms Form 1 Task 1, Form2 builds on Form 1 for Task 2 no problem there.

I was just wondering if it is possible to use just one Form in the Process and then Show Sections as I move throught the User Tasks in Process Modeler.

 

Maybe something obvious I am missing.

0 0

Answer

APPROVED ANSWER
replied on November 30, 2015

You can use customize JavaScript to hide/show a field based on process modeler task, following are the code sample.

$(document).ready(
function() { 
if($('input[name="stepid"]').val() =="[step_id]") {
$("#q8").addClass('hidden');
}
});

If you are using latest Forms 10, the step id for the task will appear on the top right

If you are using previous version, you can following instruction on https://answers.laserfiche.com/questions/68329/Hiding-Form-Fields-based-on-UserParticipant-OR-One-Form-Multiple-EditsReviewers to find out the step id from database

1 0

Replies

replied on December 7, 2015

So here is the record in the database

Here are the fields I want to hide ie. q27

 

 

Is this the correct syntax

 

$(document).ready(
function() { 
if($('input[name="stepid"]').val() =="227") {
$("#q27").addClass('hidden');
}
});

1 0
replied on December 9, 2015

Yes, the script is correct.

0 0
replied on November 26, 2015

Hi Bill,

I suggest you to copy you form and assign it to different user and modify the behavior with Java.

So that will be all at the end a different forms based on the same form.

 

I believe it is what you already did.

 

or I imagine you can maybe create a java script that will use if and then base on the user name or task and use only one form

Call me if you need more explanation of what I have in mind

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

Sign in to reply to this post.