Date/time variable on catalog item based on time zone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2017 04:46 AM
I have created a Catalog item named Book a meeting.
We have two dates/time fields on the form.
- Meeting start date Field name = meeting_date_time_start
- Meeting end date Field name = meeting_date_time_end
When the customer select the field (s) we want them to be able to select a time zone based on the location the meeting will be held when submitting the request. please note I a new to coding and only recently passed my SN Administration exam. So help is greatly appreciated.
Has anyone done this or know how I can get SN to do this?
Many thanks for your help in advance.
Kind regards
Sarah

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2017 09:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2017 02:20 AM
Thanks for this, can I ask how best to do this? I tried a catalog client script and it says I can't use gs.print. The Wiki says a business rule or a script include and I am getting a bit lost here.
If you can explain in steps I would appreciate it. As mentioned I am not the best at coding and only just passed my Administration exam a few month back. Coding is planned for courses this year and I am learning as I go.
Kind Regards
Sarah

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2017 02:22 AM
instead of gs.print use alert in client side
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2017 02:28 AM
Apologies but I am not sure what you mean.
Do I create a Catalog Client script?
Use code
var gdt = new GlideDateTime();
gs.print(gdt.getLocalDate()); Replace with what exactly?
Many thanks in advance and sorry I am not understanding what it is you mean.