cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
asm
Nintex Newbie

Nintex form online issue javascript . getting The form is referencing a field that does not exist.

Jump to solution

I am getting "

The form is referencing a field that does not exist. Please notify the form designer." 

I have a simple form where I am trying to assign a field value using java script . In the form setting I have custom javascript includes as "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"

For the field I have Store Client ID in JavaScript variable = Yes , 
Client ID JavaScript variable name = temp

Then I have a javascript button with client click = NWF$(document).ready(function(){ NWF$("#"+temp).val("Text"); )}

So when I click the button , I am getting this error. If I write alert("test") for the cleint click it works.Also if I remove the NWF$(document).ready(function() , it gives the same error . Am I missing anything ?

Labels: (1)
Tags (2)
0 Kudos
Reply
1 Reply
allan
Nintex Newbie

Re: Nintex form online issue javascript . getting The form is referencing a field that does not exis

Jump to solution

Youi do not need to include jQuery, NWF$ is jQuery.
Be careful with the type of control you are trying to update, depending on the type, you need to update it another way (a dropdown list is not updated via JS the same way a input is).

Also, remove "NWF$(document).ready" , when you click on your button, the document is already ready. 
Be careful because "NWF$(document).ready" is true only for jQuery, not for loading forms. The correct way to get the "ready" event with Nintex is "NWF.FormFiller.Events.RegisterAfterReady(function () {...});"

0 Kudos
Reply