Need to display the current logged in user time zone details beside the date\time fields on change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 06:16 AM
Hi All,
Good Day.
I have the requirement need to display the current logged in user time zone details beside the date\time fields (Planned Start \ End dates) on change form.
Please refer the snap shot for the details.
Any help is appreciated.
Regards,
Kotaiah Sadari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 06:22 AM
The way you are suggesting is not possible without DOM which is not recommended by servicenow and has potential to break in SN upgrades.
The alternative to this could be g_form.showFieldMessage() for both your field in an on Load client script. This will be a recommended practise.
Refer:https://docs.servicenow.com/bundle/utah-application-development/page/script/useful-scripts/reference... for field message info.
Please mark the answer correct/helpful accordingly.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 06:39 AM
Thanks raghav for the quick response, if you have any link to show the timezone details by using the dom objects can you pleas share with me.
Regards,
Kotaiah Sadari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 07:07 AM
DOM is very specific thing and should not be used .Also getting timezone is OOB code.
Showing it the way you want will need DOM and that is very specific to requirements.
Raghav
MVP 2023