how to hide a field in workspace when state is closed

Lakshman_Nalla
Tera Contributor

hi all,

   I'm trying hide T1 validator field when state is completed-accepted in workspace. I need some suggestions 

2 REPLIES 2

Vaibhav127
Tera Guru

Hi @Lakshman_Nalla ,

 

Write an UI policy 

condition - state is completed-accepted

Create ui action policy

field - T1 validator, visible - false

 

Samaksh Wani
Giga Sage
Giga Sage

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