How to Display UI action button via script

Suyash Joshi
Tera Contributor

Hello Everyone,

I need a small requirement on UI action.
I need to display form button via UI action script or Client script if caller is in the given group. Although I create a new group.
My script:-

    var callerValue = g_form.getValue('u_caller');
    if (g_user.hasRole(callerValue)) {
        g_form.removeDecoration('form_button');
    } else{
        g_form.addDecoration('form_button');
    }
Any help will be grateful
Thank You
Regards,
Suyash
1 ACCEPTED SOLUTION
11 REPLIES 11

Hi @Suyash Joshi 

 

Can you please share a snip of the UI Action configuration ?

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma

Hello @vermaamit16 I will but I achieve the requirement