- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2022 03:48 AM
Start date is a Date Field. It should populate current date only when the B choice is selected on the A field.
Please help me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 10:16 PM
Write a ONCHANGE client script
var currentDate = new Date().toISOString().split('T')[0];
g_form.setValue('start_date',currentDate);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2022 03:50 AM
Use this
javascript: new GlideDateTime().getDate();
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2022 04:05 AM
Please help me its not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2022 07:06 PM
share your screenshot where your setting the default value. You need to save the form for this to work
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2022 03:51 AM
Hi there!
Update the script as below
javascript: new GlideDateTime().getDate()
Please mark my answer correct and helpful if this resolves your issue.
Regards,
Palak