Issue on UI ACTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 04:34 AM
code was not working
condition: current.state == 2&&(gs.getUser().isMemberOf(current.assignment_group)||(gs.getUser===current.assigned_to))
code:
//getting field value and setting them mandatory through clientscript
if(typeof Window=='undefined')
{
g_form.setMandatory('hold_reason');
g_form.setMandatory('comments');
}
//making update through serverscript
function onHold(){
current.state='On Hold';
current.update();
action.setRedirectURL();
}
explanation:button must be visible when loggedin user was a member of assignment group or equal to assigned_to field making hold reason mandatory and setting the state into on hold
issue: button was visible these time but the state was not changed and it does not make the above mentioned field into mandatory
0 REPLIES 0