Skip to main content
Nintex Community Menu Bar

How to set value to a SQL request contorl

  • Nov 29, 2016 3:26 AM UTC
  • 7 replies
  • 36 views
  • Translate All

Forum|alt.badge.img+10

Hi All,

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

Thanks

Sojan

7 replies

Forum|alt.badge.img+3
  • Apr 18, 2017 11:03 PM UTC

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))

Translate

Forum|alt.badge.img+10
  • Author
  • Apr 18, 2017 11:08 PM UTC

What is the version of your form

Translate

Forum|alt.badge.img+3
  • Apr 18, 2017 11:12 PM UTC

I am using version nintex forms 2013 version 2.9.0.0

Translate

Forum|alt.badge.img+10
  • Author
  • Apr 18, 2017 11:17 PM UTC

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);

Translate

Forum|alt.badge.img+3
  • Apr 18, 2017 11:27 PM UTC

what is CtlValue ?

Translate

Forum|alt.badge.img+10
  • Author
  • Apr 18, 2017 11:33 PM UTC

The value you want set

Translate

Forum|alt.badge.img

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

Translate