Displaying an SLA value in an info message from a reference field

Tal5
Giga Guru

Hello everyone,

 

I would like to display the relevant value from the SLA duration field in an informational message when a new case is opened.

In the record producer, I have a variable set that includes a variable created in a catalog client script named "add SLA alert." This script is of type onSubmit and contains the following code:

 

JavaScript
g_form.addInfoMessage("XXXXXX " + g_form.getValue('?') + " DAYS");

My challenge lies in determining the appropriate value to use within g_form.getValue('?').

Could anyone provide guidance on this matter?

 

Thank you in advance.

Best regards

Tal