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


Badge +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

Userlevel 4
Badge +12

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

Badge +4

Unfortunately this does not work sad.png

Reply