Page 1 of 1

Refresh date field

Posted: Sat Jan 29, 2022 12:26 am
by baracca
mobilemcclintic wrote: Wed Dec 14, 2016 5:22 pm I have a dropdown box that a user selects Yes, No or Pending with the dropdown field using "|Pending|1|Yes|0|No".
This dropdown has an onchange event on it that changes a date field, which works great.
I'm trying to write a js function for updating a date field but all my attemps don't work. How do you get your result?

Re: Refresh date field

Posted: Sat Jan 29, 2022 12:58 am
by kev1n
Hi,

I've moved your question from the v3 to the nuBuilder Forte Forum.

nuSetDateValue() sets a date value in the date object indicated. If no second parameter is passed, the current date is set.

E.g.

Code: Select all

nuSetDateValue('your_date_object_id','2022-01-29');

Re: Refresh date field

Posted: Sat Jan 29, 2022 10:05 am
by baracca
kev1n wrote: Sat Jan 29, 2022 12:58 am Hi,

I've moved your question from the v3 to the nuBuilder Forte Forum.

nuSetDateValue() sets a date value in the date object indicated. If no second parameter is passed, the current date is set.

E.g.

Code: Select all

nuSetDateValue('your_date_object_id','2022-01-29');
Thank you very much! I have to change my way of thinking, with nuBuilder everything is simplest. :thumb: