- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 10:14 AM
Hello,
I am working on a template to generate an incident. In the description of the incident I would like to be able to pull in a list of open records (just the RITM number). Is there a way for me to use javascript inside of this template? I tried adding 'javascript:gs.getUserID()' in the description field just to test if javascript would work but it only comes as plain text.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 11:09 AM
Hi,
Have you looked into response templates? This can pull values dynamically from the form like you want:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 10:47 AM
Unfortunately, no; you are not able to use javascript to dynamically set the values in a template.
Wish I had a better answer for you!
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 10:52 AM
Slight correction; you can use javascript to set a reference field dynamically, for example setting a user-field you can use javascript:gs.getUserID(); but for other field types, it is not an option at present.
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 11:09 AM
Hi,
Have you looked into response templates? This can pull values dynamically from the form like you want:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 12:45 PM
I will look into this, thank you for the advice.