cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Not able to set the date time field

Jump to solution

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

Labels: (2)
Tags (1)
0 Kudos
Reply
4 Replies
Highlighted
Nintex Newbie

Re: Not able to set the date time field

Jump to solution

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

0 Kudos
Reply
Nintex Newbie

Re: Not able to set the date time field

Jump to solution

could you please explain briefly

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Not able to set the date time field

Jump to solution

I want to assign this value to the date time field

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Not able to set the date time field

Jump to solution

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

View solution in original post

0 Kudos
Reply