- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 01:08 PM - edited 09-06-2023 01:09 PM
I am trying to use i18.format method in a catalog client script but having no luck.
Initially trying the example in the documentation and outputting an alert message using a Catalog onChange script:
var info_message = nowapi.g_i18n.format("The {p1} {p2} {p3} was very very {p1}",{p1: "rich", p2: "young", p3: "ruler"});
alert(info_message);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 02:38 PM
The documentation does not specify, but it seems like it only works in the fulfiller UI forms view only, and NOT in the Service Catalog nor the Service Portals.
"Normal" form view:
Catalog Item in Fulfiller view:
(throws error in the browser console)
Catalog Item in a Service Portal:
I could only find the function used in 5 oob Client Scripts. I only use it in 1 of my UI Actions ("Set Name from Source Table" Tool). Kinda limiting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 02:38 PM
The documentation does not specify, but it seems like it only works in the fulfiller UI forms view only, and NOT in the Service Catalog nor the Service Portals.
"Normal" form view:
Catalog Item in Fulfiller view:
(throws error in the browser console)
Catalog Item in a Service Portal:
I could only find the function used in 5 oob Client Scripts. I only use it in 1 of my UI Actions ("Set Name from Source Table" Tool). Kinda limiting.