- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2022 10:45 AM
Hello,
I have a dictionary that is time stamped to today using the Dynamic Default on the field. How can I override this value with a client script? I tried the following:
function onLoad() {
g_form.clearValue('u_date');
}
This did not work.
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2022 11:07 AM
It seems onLoad() is getting executing before the values are populated using Default.
Can you confirm the exact business need once.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2022 10:49 AM
Try below.
function onLoad() {
g_form.setValue('u_date','');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2022 10:50 AM
I tried this as well and it did not clear.
The field is using a Dynamic Default Value. I am not sure if this makes a difference

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2022 11:07 AM
It seems onLoad() is getting executing before the values are populated using Default.
Can you confirm the exact business need once.