AnsweredAssumed Answered

How do I setup a button to select tomorrow for a date field on a form

Question asked by amir.gilboa@voya.com on Nov 19, 2015
Latest reply on Nov 23, 2015 by amir.gilboa@voya.com

On a given form we have a date field and date picker, while 50% of the time the date we want is current date, almost all the rest of the times we want tomorrow (next business day) to be the date.

 

How can I add a button that will +1d the default date value in the date filed?

 

I've tried JS but the way I did it caused the form to reload which caused the default date to again appear in the date field... so it was both very slow and didn't actually work .

 

If I can figure out the [+1d] button to update the field I'm hopeful that I'll be able to use JS to compute weekday vs weekend and set it to be be [NextBizDay]

 

Thanks in advance for any suggestions.

 

Amir.

Outcomes