Question about Checklist Formatter

JK1
Giga Expert

Hey guys,

happy new 2018 year to all of you!

As I want to apply given checklist (saved as template) for a particular ticket types, but so far I am failing to do so, is there a way you can do that without just adding a ton of HTML elements into the DOM ? I want to use these as a dynamic checklist, what must be done as a work .

Where are these held? And how can I add such checklist template whenever I would like to?

find_real_file.png

Cheers,

Joro

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi Ash, 

these are 2 UI Macros - serach under macros with *check and you'll find them.

 

Cheers,

 

Joro

View solution in original post

15 REPLIES 15

Community Alums
Not applicable

Hi again Florian,

sure no issues at all 🙂

Add the dynamicChecklist script include. Note that to use it as is, you should create templates, this in OOB functionality (its explained a bit up in the thread). Then in the business rule just add:

 

var list = new dynamicChecklist();
list.applyChecklist(current.sysid, current.getTableName(), gs.getUserID(), "YOUR TEMPLATE NAME");

In general this is it. The template is very easy to create. It is creating the checkboxes only from the Short Description field. If you want to hide the checkboxes Add/Remove buttons and so on, let me know - i have already created client script, although I should change the UI Macros used by these. Though it is working

Hi Goran, 

 

Since you know a lot about this 'CHECKLIST',  I got a question for you and would be great if you can assist me.

So, when we click 'Save as Template' within the checklist, it will show a pop up screen. Here, the second field 'User group' which I need to add a filter/ reference qualifier since it displays all the groups. Any idea where I can edit this?

 

Thanks, 

 

Ash

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hmm.. tough one. I'm actually thinking to be able to solve this you would probably need to create the whole save thingie from start to end in a own UI page or similar. I'm going to think a bit more about it and see if I can come up with something else.

 

//Göran

Hi Goran, 

 

I wanted to hide user group field in save as template dialog. 

It will be helpful if you can guide me how to hide this select box.

I have checked in checklist_save_as_template UI page but I didnt find any code related to user group.

 

Thanks,

Poojitha BN 

 

Community Alums
Not applicable

Hi Ash, 

these are 2 UI Macros - serach under macros with *check and you'll find them.

 

Cheers,

 

Joro