- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 12:57 AM
Hey All,
I've checkbox variables which are readonly initially, After submit, I need the checkboxes to be selectable during "ABC Approver" task only, How will I handle this?
Thank You..
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 06:07 AM
Hi,
The catalog client script would still be required.
Use this in flow designer:
Screenshots:
1) I assume you must have defined the Trigger as Service Catalog
2) Select Action as - Get Catalog Variables
a) Submitted item - drag and drop the pill from right side of Requested Item Record here
b) select the catalog item you want to attach for this flow
c) Then push all variables from this catalog item to right side
3) Create Catalog Task
a) in the action select "Create Catalog Task"
b) Drag and drop the pill of Requested Item there in Requested Item field
c) Select the catalog item again; it would show the variables belonging to this Item
d) Under Catalog Variables you can now push the variable you want to show from Available to Selected
I have pushed "currency" variable to selected; So when catalog task is created it would show Currency variable on catalog task form
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 01:20 AM
Hi,
you need to add that variable on Catalog Task when you use Catalog Task workflow Activity by moving from available to selected section.
Then write onload catalog client script which Applies on Catalog task; select your catalog item
In script set the variable as editable true
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 02:15 AM
Hi Ankur,
ThankYou for the reply, can you please tell me the steps to follow. It will be very helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 03:02 AM
Hi,
I assume you already have workflow for your catalog item
So in catalog task activity you need to select the variable from Available and push to Selected
It will start showing on catalog task
Next create onLoad Catalog Client Script as below
1) Applied to Catalog Task
2) Select your Catalog Item
3) UI Type as ALL
4) Type as - onLoad
Note: Give proper variable name here
function onLoad(){
g_form.setReadOnly('variableName', false); // give here the variable name
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 03:16 AM
Hi Ankur,
As I am using "Flow designer" not workflow. Can you please tell the Flow-Designer steps.
ThankYou.