Checklist for catalog task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 07:37 AM
Hello,
I'm looking to add a checklist to a catalog task but I only want the checklist to appear when 1) a particular requested item is used (in this case our leaver catalog item) and 2) only on one of the catalog tasks.
I've been able to add the checklist formatter as per the screenshot below but am unsure how to get this to appear for 1 catalog task only?
Is this possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 08:02 AM
You could use a Client Script to achieve this. In your code for your client script you could decide to show or hide the checklist variable based on some condition, i.e the Item is X and the Task is Y. Once you specify which Task you want to trigger it on you could then call the following code to make sure that the variable doesn't appear.
g_form.setVisible('variables.YOUR_VARIABLE_NAME', false);
To make sure you are only triggering the Client Script for a specific Item you can use the 'Item' field on the Requested Item table to check if it is a certain value. Since you are doing this on the SC_TASK level you will have to validate the item using some form of dot-walking to the Requested Item. As for figuring which Task to trigger it on, you will need to define how you identify the Task to trigger it on first then write that into your conditions.
Hope this helps.