Dynamically change catalog item Description field with 'embedded" script

Ken24
Giga Expert

Is is possible to dynamically change the description field text under the "What it will contain" TAB in a catalog item  [or a variables Annotation fields (help_text or HTML instructions)]?   Similar to using a Notification Email Script inside the Notification message field.

i.e. like for Something broken description  "Enter a description of your issue below.  IF THIS IS AN EMERGENCY, please call 800-555-555X and enter your employee number ${script:employee_number} when prompted"  

In this case based on logged in user.

Thanks, Ken

 

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi Ken,

This isn't possible on these fields, it's explicitly strict for security. However you do have a few options:

  • Info message on load that displays a comment through a glideajax call to retrieve the information.
  • Field message (on load of the form or change of a field) that displays text below a variable field.
  • An alert popup that appears that the user has to actively dismiss before proceeding.

All of the above would require a glideajax call in order to retrieve the information from the server (i.e the current users employee number).

View solution in original post

1 REPLY 1

Kieran Anson
Kilo Patron

Hi Ken,

This isn't possible on these fields, it's explicitly strict for security. However you do have a few options:

  • Info message on load that displays a comment through a glideajax call to retrieve the information.
  • Field message (on load of the form or change of a field) that displays text below a variable field.
  • An alert popup that appears that the user has to actively dismiss before proceeding.

All of the above would require a glideajax call in order to retrieve the information from the server (i.e the current users employee number).