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

Question

Question

JQuery Laserfiche Default Variables

asked on May 4, 2016

Hi,

Just a quick one - is there a quicker way to reference the default Forms variables in Javascript?

For example: I would like to setup an IF statement based on the current Task/Step Name. 

Currently I have setup a Custom HTML Input field which is populated with {/_current_step_name}, I extract the value from the custom field on form load to then drive my IF statement. Ideally I would like to reduce the workload of adding unnecessary Fields if there are declared variables already available.

The variable I would need is {/_current_step_name}.

Thanks in advance!

Dom

 

0 0

Answer

SELECTED ANSWER
replied on May 15, 2016

Hi Dominic, there is no available declarations for these default variables in JavaScript.  The values for these variables are parsed when generate the form in the back end,  so the front end JavaScript does not know these variables and their values.

0 0
replied on May 16, 2016

Thanks Xiuhong! I will continue to use my existing method :)

0 0

Replies

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

Sign in to reply to this post.