cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Issue with JavaScript Custom code and assigning dates

Hello,

Hope someone can help out with this as we have been experiencing problems.

We currently have a form that has several date fields that should populate with a date once a separate Status value is assigned.

We are using the JavaScript shown in the attachment. The script should allow us to submit the form and depending on the Status assigned, Populate the associated date value in the form with (todays) date

The first assigned value will set the date today as expected.

The issue seem specifically around setting the value on the data field

val(currentDate)

This is not happening. It seems to not allow us to submit a value after the initial status is assigned. The date fields do not populate with the (Today) date as expected.

 Has anyone experience this and can help find a solution?

Thanks

Dave Stuart

Tags (1)
Reply
1 Reply
Workflow Hero

Re: Issue with JavaScript Custom code and assigning dates

try

NWF$("#" +workInProgressDate).val(currentDate);

0 Kudos
Accept as Solution Reply