I have been searching and testing JavaScript for several days now and can't get this to work (because I am no JavaScript expert). I simply need to set the value of a Single Line Textbox control with the value being calculated in a Calculated Value control. (The Textbox control has to be used in a List View filter, as Calculated Value controls cannot be used.)
I have set the JavaScript variables in both controls:
- Calc control variable = calLocNum
- Text control variable = txtLocNum
I also need the Text control value to update whenever the Calc control value changes. So, this is the JavaScript that I think is close to what I need, but it doesn't work.
NWF.FormFiller.Events.RegisterAfterReady(function()
{
NWF$("#" + calLocNum).change(function()
{
NWF$("#" + txtLocNum).val(NWF$("#" + calLocNum).val());
});
The other thing I find is the use of double quotes versus single quote around the #. Which is correct? I'm using Nintex Forms 2010 on prem.