- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 06:35 AM
Hi,
I want to add an info message when List collector variable on the form is not empty and have to achieve with onload catalog client script. This message has to be displayed in SC task when we open the request. How to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 06:40 AM - edited ‎12-27-2022 06:41 AM
Hi @GUSNOW13,
Create Catalog UI policy wit condition as -
Variables - variable_name is Not Empty
Execute of true:
g_form.addInfoMessage("Add your message here"); // check correct syntax for method
Execute of false:
g_form.clearMessage(); // check correct syntax for method
Note - Applies on Catalog task only check box - True.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 06:38 AM
Create a catalog client script o your catalog item (applicable to sc task only) with below code:
if(g_form.getValue('list_collector variable_name')==' ')
{
g_form.addInfoMessage("type your message here");
}
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 06:40 AM - edited ‎12-27-2022 06:41 AM
Hi @GUSNOW13,
Create Catalog UI policy wit condition as -
Variables - variable_name is Not Empty
Execute of true:
g_form.addInfoMessage("Add your message here"); // check correct syntax for method
Execute of false:
g_form.clearMessage(); // check correct syntax for method
Note - Applies on Catalog task only check box - True.
Thanks,
Sagar Pagar