To set a field value in UI pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 10:47 PM - edited 11-28-2023 10:47 PM
Hi Community,
i have a ui page, using that i want to map the fields which i have on the dialog box and fields which i have in the time worked table. I am able to map all except the time worked field.
Here is my code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 11:01 PM
Hi @Poorva Bhawsar ,
If you want to set it to some default value, map the sys id as follows:
ui_reference name="ref" table="sys_user" value="<give_sys_id_of_default_value_here>"/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 11:03 PM
I dont want to set it to a default value. Whatever i will enter in the popup for time worked field, it should create a record in a table and auto fill time worked field with the value i entered on the popup.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 11:49 PM
Hi @Poorva Bhawsar ,
Can you share the output of alert?
Did you pull time_worked field on to the form?
Can you try executing g_form.setValue('time_worked','100000000'); in the developer tools or may be client script?
Thanks,
Naveen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 12:39 AM
Here is the screenshot of the alert.
I am getting the date, hours, minutes and seconds what i have entered on the popup.
g_form.setValue('time_worked','100000000'); i tried this but its not working.