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

Question

Question

Target tab (page) at specific step (ID) in process

asked on June 28, 2018

Hello Answers!

Can you help me figure out how to make the my last page (tab) the "target" page when my process is at a certain Step ID?  I only know enough about Javascript to be stupid/dangerous (depending on your definition), so I've pieced together how to find the Step ID and use the "IF" function, but I can't figure out what I need to set my target. 

Here's what I've got so far: 

$(document).ready(
function() { 
  if($('input[name="stepid"]').val() =="53") {
	 $('#q12')..../*now what?*/;
  }
});

Where 53 is my Step ID and q12 is the field name for the fourth tab of my form.

 

Thank you so much for your help! 

(I had posted this in a reply to an old post, but wasn't sure if it would get picked up as a new question - my apologies if I've doubled down inappropriately!)

0 0

Replies

replied on June 28, 2018

I'm not sure that I understand what you want to happen? Do you want to navigate to the tab represented by #q12?

If that's the case, you can just do this:

$('#q12').click();

 

0 0
replied on June 28, 2018

Thank you for the quick response Devin!

Yes - that's exactly what I'm trying to do: navigate to the tab represented by #q12 at Step ID 53; however, I seem to be missing something. The ".click();" didn't work. 

Interestingly enough, I had a thought to search Answers for anything relating to the Class "cf-page" and I found this post:

 https://answers.laserfiche.com/questions/135025/Forms-Open-form-on-specific-forms-tab#135178

Rui's answer worked! 

Again, thank you for your quick response. I appreciate it :) 

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

Sign in to reply to this post.