how to hide a field in workspace when state is closed
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 09:12 PM
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 03:28 PM
Hi @Lakshman_Nalla ,
Write an UI policy
condition - state is completed-accepted
Create ui action policy
field - T1 validator, visible - false
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 08:36 PM
Hello @Lakshman_Nalla
Go to Application Navigator > System Definition > Client Script.
In the Client Script select view Field as Workspace.
Write OnChange Client Script :-
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if ( isLoading || newValue == '') {
return;
}
var state = g_form.getValue('state');
if(state == 'Completed-Accepted'){
g_form.setVisible('T1_validator_field_name', false);
}
}
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh