The CreatorCon Call for Content is officially open! Get started here.

calling multiple script includes dynamically

Alon Grod
Tera Expert

Hi,

I have the field u_calculation of type String in u_merkaz_tom custom table. This field's hold for each row a combination of Script include's name and function, for example: MyScriptInclude().MyFunction().

I need to create a UI Action that when the user clicks on it, it will for each row the u_calculation value and trigger the script include and the script include function that it holds each time.

How can I achieve that?

Screenshot 2023-10-01 at 11.35.29.png

 




1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@Alon Grod I recommend making u_calculation a Calculated field here. Following are the steps using which you can make a filed calculated.

1. On your form right click on the field and choose Configure dictionary.

2. You will be taken to the following screen.

Screenshot 2023-10-01 at 4.15.54 PM.png

Click on the advanced view in the related links in the bottom.

3. On the advanced view find the Calculated Value tab and check the calculated checkbox.

Screenshot 2023-10-01 at 4.16.54 PM.png

For more information on Calculated Values please refer to this article https://www.servicenow.com/community/developer-blog/calculate-value-field-use-case/ba-p/2386808

 

Hope this helps.