UI builder Client Script for specific view

Arya9
Tera Contributor

Hello all,

 

I'm using one table list view in UI builder specifically the workspace view in that whatever I did changes in workspace view are reflecting in my ui builder workspace.

Now I wanted to hide one section and for that I have written the onload client script but that is not working as expected. I tried in both view based and global script but not working. Do anyone has any script which can hide section on the basis of user roles for UI Builder .

My script 

if (g_user.hasRole('legalservice_manager')){

    g_form.setSectionDisplay('activity, true);

} else {

    g_form.setSectionDisplay('activity', false);

}

2 REPLIES 2

Arya9
Tera Contributor

Is there anyone know about this ?

Arya9
Tera Contributor

Anyone know about this ?