We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Create Checklist for Fulfillers on SC Task

AnthonyMull
Tera Contributor

Hi

 

I would like to make a check list available to fulfillers but only for specific users / groups.

 

I would like to do this using a View and only make that view available to limited users.

 

Can I limit views in that way easily?

 

Thanks in advance.

1 ACCEPTED SOLUTION

@AnthonyMull 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

8 REPLIES 8

lauri457
Kilo Patron

I don't think you can limit access directly to users or groups but it can be achieved with adding a role to the view [sys_ui_view]. To force views you can use view rules [sysrule_view]

Ankur Bawiskar
Tera Patron

@AnthonyMull 

2 approaches

1st approach -> Create separate form view and include that checklist formatter in that view. Then use View Rules and take

your specific user/group members to this View

2nd approach -> you can't show/hide the checklist formatter using UI policy or client script as it's not a field

1 workaround is to use DOM manipulation to hide it.

Note: DOM manipulation is not recommended

Something like this

Display BR: 

(function executeRule(current, previous /*null when async*/ ) {

    g_scratchpad.checklistVisibility = gs.getUser().isMemberOf("Group ABC");

})(current, previous);

onLoad client script: Keep Isolate Script = False for your DOM to run

function onLoad() {

    setTimeout(function() {
        if (!g_scratchpad.checklistVisibility)
            document.getElementById('inlineChecklistApp').style.display = "none";
    }, 1000);

}

AnkurBawiskar_0-1769581828039.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@AnthonyMull 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@AnthonyMull 

I believe you should mark that response as correct which has the script and approach.

This helps future members as well.

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