Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Refresh date field

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
baracca
Posts: 4
Joined: Sat Jan 22, 2022 5:28 pm
Has thanked: 1 time

Refresh date field

Unread post 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?
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Refresh date field

Unread post 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');
baracca
Posts: 4
Joined: Sat Jan 22, 2022 5:28 pm
Has thanked: 1 time

Re: Refresh date field

Unread post 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:
Post Reply