Enable checkbox from flow designer during specific approval task.

Mohammed
Kilo Contributor

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?

find_real_file.png

 

Thank You..

1 ACCEPTED SOLUTION

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

find_real_file.png

 

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

find_real_file.png

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

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

ThankYou for the reply, can you please tell me the steps to follow. It will be very helpful.

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

}

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

As I am using "Flow designer" not workflow. Can you please tell the Flow-Designer steps.

ThankYou.