Use javascript inside incident template?

Jared Wason
Tera Guru

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.

 

find_real_file.png

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi,

Have you looked into response templates? This can pull values dynamically from the form like you want:

Response templates

View solution in original post

4 REPLIES 4

Michael Jones -
Giga Sage

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 Jones -
Giga Sage

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!

Kieran Anson
Kilo Patron

Hi,

Have you looked into response templates? This can pull values dynamically from the form like you want:

Response templates

I will look into this, thank you for the advice.