- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 11:31 PM
Hi,
Requirement - I have created 4 variables on service portal which is not mandatory field(It should not visible on service portal form) but when i will submit the form it should not visible on RITM as well but should be visible only on Catalog task and in catalog task those 4 variables field should become mandatory otherwise state should not set as closed complete and if we directly selected state to closed complete it should throw error message as "first fill those 4 variables and then submit".
On Catalog task form 4 variables should be visible and mandatory.
Please suggest how can i do this.
Thanks,
Raghav
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 01:19 AM
Hi,
1st script.
Create onload catalog client script..and write the script to hide the variables..
But there will be three fields "Applies to catalog item" and "Applies to requested item " and "Applies to catalog task" in this mark true for catalog and requested item..
So it will be visible on catalog task but not on portal and requested item..
2nd Script
Create one more on load/submit client script and just write g_form.setMandatory scirpt for all 4 variables..
But here make true only for "applies to catalog task"
Give a try like above and let me know if you stuck at any where
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:24 AM
Hi Raghav,
In your workflow, on the Catalog Task activity, scroll to the bottom of the form and that's where you can add the variables. You can have different variables per task:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 01:13 AM
Hi Sandeep,
As per your say. i have taken those 4 fields on right side but now the condition is i want those 4 fields to be mandatory on catalog task and in catalog task those 4 variables fields should become mandatory otherwise state should not set as "Closed complete" and if i directly try to set state to "Closed complete" it should throw error message as "first fill those 4 variables and then submit".
Only on Catalog task form 4 variables should be visible and mandatory but not on RITM and Service portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 01:19 AM
Hi,
1st script.
Create onload catalog client script..and write the script to hide the variables..
But there will be three fields "Applies to catalog item" and "Applies to requested item " and "Applies to catalog task" in this mark true for catalog and requested item..
So it will be visible on catalog task but not on portal and requested item..
2nd Script
Create one more on load/submit client script and just write g_form.setMandatory scirpt for all 4 variables..
But here make true only for "applies to catalog task"
Give a try like above and let me know if you stuck at any where