Need to display the current logged in user time zone details beside the date\time fields on change

Kotaiah
Kilo Guru

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.

koti_724_0-1696857373610.png

 

 

Any help is appreciated.

 

Regards,

Kotaiah Sadari

3 REPLIES 3

RaghavSh
Kilo Patron

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

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

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