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

Question

Question

Event ID being used to hide/show sections at specific points in process

asked on March 2, 2016

Hi there,

 

I'm trying to hide/show sections on my form using the Event ID from the process diagram.

i created a field called Event ID and set its default value the the Current Step ID, then i setup a few field rules to show hide sections at specified points based on the value of the Event ID field is.

it populates the Current Step ID on submission but does not refresh the value at the next step.

if i manually populate the Event ID with the Current Step ID i need, then the sections reveal as required.

is there a script i can use to 'reset' that value/field every time the form is submitted?

or is there a different work around.

thanks in advance.

0 0

Replies

replied on March 3, 2016

Hi there,

How about you put it in CustomHTML field (so value will be up to date in each step), and then use script to show and hide section.

0 0
replied on March 4, 2016

Hi Abby,

 

ill give this a shot, thanks.

0 0
replied on June 9, 2016

I'm trying to do something similar using javascript. I want to hide an employee's notes section from the manager and I think using Current Step ID is the easiest as the employee input is always step 1 and step 2 is manager, what am I missing in my syntax? Is the current_step_id incorrect?

 

$(document).ready( function() {
if($'{/_current_step_id}').val() =="2") {
$('#q151 input').addClass('hidden');
}
});
 

0 0
replied on March 9, 2017

Shaun did you ever get this to work?  I am on version 10.1 and can't see the current step id changing.  I'm wondering if it doesn't work or you figured out how to utilize it.  I know this post is old; but, hoping you solved my problem last year.  thanks

0 0
replied on March 17, 2017

Hi Beth, 

I can't recall which customer this was for, but I did get it working. I believe I had to use a blank single line and put the step id as a default value as I couldn't get it to work any other way. Give it a css class name of currentstep. Then I changed my javascript to reflect the css class name.

If that doesn't work, let me know. I'll try to find out which client it was for and grab the code.  

Sorry for the late reply, I never noticed your message until today. 

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

Sign in to reply to this post.