cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can i catch the form variables in javascript in Nintex forms ??

Jump to solution

Hi all,

i need to use a workflow variable in javascript inside the form, How can i do this ? if it's doable.

Thanks & BR,

Muhammad Maher

0 Kudos
Reply
5 Replies
fhunth
Nintex Newbie

Re: Can i catch the form variables in javascript in Nintex forms ??

Jump to solution

You can set a Nintex Form control with a JavaScript variable, then you can set a workflow variable with it.

Here is a sample JavaScript

function setControlValue(value){

  NWF$('#'+yourControl).val(value);

}

0 Kudos
Reply
mlauer
Nintex Newbie

Re: Can i catch the form variables in javascript in Nintex forms ??

Jump to solution

Hi Muhammad

good question - I don't know how to acces the variable in a direct way, but it is possible e.g. via a single line control with default value equal to the variable value. Assign a javascript variable name to the control to store the client ID (Advanced setting of control settings) and hide the control by giving css attribute visibility:hidden.

Now You can get the value by

     NWF$('#'+ var).val();

Kind regards

Manfred

Reply
Not applicable

Re: Can i catch the form variables in javascript in Nintex forms ??

Jump to solution

use this:

NWF$('[data-controlname*=FormVariableName] input').val()

Hope it helps!

0 Kudos
Reply
fhunth
Nintex Newbie

Re: Can i catch the form variables in javascript in Nintex forms ??

Jump to solution

Muhammad Maher​, have you solved it?

0 Kudos
Reply
Automation Master
Automation Master

Re: Can i catch the form variables in javascript in Nintex forms ??

Jump to solution

This might be a nice one to put on User Voice forum.

0 Kudos
Reply