How to set value to a SQL request contorl

  • 29 November 2016
  • 7 replies
  • 5 views

Badge +10

Hi All,

Is it possible to set value (default value ) to SQL Request Control?

Thanks

Sojan


7 replies

Badge +3

I am also looking for a solution to this same problem.  I can get the value with

alert(NWF$('#' + javaPlayerName).val())

I cant set the value or get the value for the second item in the list/drop down

alert(NWF$('#' + javaPlayerName).val(2))

Badge +10

What is the version of your form

Badge +3

I am using version nintex forms 2013 version 2.9.0.0

Badge +10

Try this code

var yourControl = NWF$("#"+ jvarCtl);
var value = yourControl.find("option[title='" + CtlValue + "']").attr("value");
yourControl.val(value);
yourControl.parent().find("input").val(value);
NWF.FormFiller.Functions.ProcessOnChange(yourControl);

Badge +3

what is CtlValue ?

Badge +10

The value you want set

Badge

Did the solution suggested work for you to set default value to SQL Request control on Nintex Form?

Reply