HIDE button on TASK Table for particular groups

suvi1
Tera Contributor

HI All,

 

 Request you to check the below code and help me,

 

 Assignment group value is also getting from the TASK TABLE only.

 

function onLoad() {

    var assgrp = g_form.getReference('assignment_group');

    $$('button[data-action-name^=state_model]').each(function (e) {

 

       // if assignment group from TASK table is HARDWARE , button should visible.

 

        if (assgrp == 'HARDWARE') {

            alert("Assignment group" + assgrp);

            e.show();

        }

        else {

            e.hide();

        }

    });

}

 

 

 

Thanks in Advance

0 REPLIES 0