Skip to main content
Nintex Community Menu Bar

SET a value for Web request control or SQL request control using JQuery, when its ts display format is text box

  • July 12, 2017
  • 2 replies
  • 14 views

Forum|alt.badge.img+4

how to set avalue using a Jquery on custom script for the webrequest control when its display format  lable or text box?

i tried the below:

NWF$("#" + webrequestval).text("");

NWF$("#" + webrequestval).val("");

but it fails

2 replies

Forum|alt.badge.img+12
  • Nintex Partner
  • July 13, 2017

Hi,

first step is to set a client ID to your text box control.

Open text box control's settings and expand Advanced section.

There you can set Store Client ID in JavaScript variable to yes.

Now you can set a variable name in Client ID JavaScript variable name, in your case maybe webrequestval.

205553_pastedImage_8.png

Now you can set the value of the text box with

NWF$("#" + webrequestval).val("Hello World");

Hope this helps,

Enrico


Forum|alt.badge.img+4
  • Author
  • July 13, 2017

Unfortunately this does not work sad.png