Not able to set the date time field

  • 5 November 2015
  • 4 replies
  • 2 views

Badge +6

I am assigning the date time field to the below format using Javascript variable

 

var d=dueMonth + "/" + NWF$("#" +POSDATE).val() + "/" + currentyear;

NWF$("#" +DateTime).val(d);

then its not saving in the form


4 replies

Badge +9

Try your_ctrl.trigger("focusout") or NWF.FormFiller.Functions.ProcessOnChange(your_ctrl);

Badge +6

could you please explain briefly

Badge +6

I want to assign this value to the date time field

Badge +9

When you assign a value by javascript to a Nintex Forms control, value is not saved to connected item or variable.

To save the value, control have to be triggered by Javascript:

 

ar d=dueMonth + "/" + NWF$("#" +POSDATE).val() + "/" + currentyear;

NWF$("#" +DateTime).val(d);

NWF$("#" +DateTime).trigger("focusout");

     or

NWF.FormFiller.Functions.ProcessOnChange(NWF$("#" +DateTime));

Reply