The CreatorCon Call for Content is officially open! Get started here.

Hide button from Checklist: Create New, Save as Template, Add Item

Rahul k
Tera Guru

I want to hide Create New, Save as Template, Add Item for the specific role(abc role) from the checklist.

create new.pngsave as template and add item.png

1 ACCEPTED SOLUTION

Rahul k
Tera Guru

Hi All,
I got the answer for the above question. I written onLoad Client Script and below code.

 

function onLoad() {
    //Type appropriate comment here, and begin script below
    if (!g_user.hasRole('wm_admin')) {
        //alert('before executing JQuery');
        jQuery('.dropdown.icon-contain-menu').hide();

        setTimer = setTimeout(setTimerDelay, 500); /*to set the timer for 2 sec*/

        function setTimerDelay() {
            jQuery('.checklist-item.add-item').hide();
        }
    }
}

View solution in original post

1 REPLY 1

Rahul k
Tera Guru

Hi All,
I got the answer for the above question. I written onLoad Client Script and below code.

 

function onLoad() {
    //Type appropriate comment here, and begin script below
    if (!g_user.hasRole('wm_admin')) {
        //alert('before executing JQuery');
        jQuery('.dropdown.icon-contain-menu').hide();

        setTimer = setTimeout(setTimerDelay, 500); /*to set the timer for 2 sec*/

        function setTimerDelay() {
            jQuery('.checklist-item.add-item').hide();
        }
    }
}