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
Solved! Go 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);
}
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
use this:
NWF$('[data-controlname*=FormVariableName] input').val()
Hope it helps!
Muhammad Maher​, have you solved it?
This might be a nice one to put on User Voice forum.