How to add the timezone to Service Catalog?

Byron Plant
Tera Contributor

Hi everyone,

I am trying to add the timezone field from the user table going to our Service Catalog, but I am not sure how exactly I should reference the timezone?

Please refer to the screenshot below. I need all the timezone that is available on the user table to be also available in our Service Catalog.

find_real_file.png

 

1 ACCEPTED SOLUTION

OlaN
Giga Sage
Giga Sage

Hi,

Create a variable that is a reference to the sys_choice table, and a reference qualifier with at least:
element = time_zone
inactive = false

find_real_file.png

View solution in original post

12 REPLIES 12

yes, you can configure a on load client script, glide ajax for your catalog item to set default value of timezone from sys_user record.

 

Regards,

Sachin

OlaN
Giga Sage
Giga Sage

Hi,

Create a variable that is a reference to the sys_choice table, and a reference qualifier with at least:
element = time_zone
inactive = false

find_real_file.png

Byron Plant
Tera Contributor

Hi @OlaN thank you so much for answering my question, however the solution you provided did not work. As you can see in my screenshot below, we only have 28 timezones available but when I did your configuration, the outcome provided more than 28 timezone

find_real_file.png

Looked at it in more detail, and I would suggest that you add additional filters to narrow the results.

Try these:

language = en

sequence > 0

Byron Plant
Tera Contributor

Hi @OlaN thank you, I was able to find the correct filter. I have another question though is there a way I can to auto populate the user's timezone from the sys_user table to the timezone field of Service Catalog?

As you can see in the image, the default timezone of Annabelle Coger in sys_user table is America/Los_Angeles. If she creates a request in a Catalog Item, the "Please select your timezone" field must auto populate to America/Los_Angeles timezone as well.