The Zurich release has arrived! Interested in new features and functionalities? Click here for more

ITSM

vikas48
Tera Contributor

Hi all,

 

I want to know how can I clear the value of a field which is a "List" type field. I'm writing a Business rule to inherit one field to other.

I am stuck at : how shall I clear the field values.

 

Please refer screenshot. The field function(type=list) is a read only field having some value..

 

 

Below is the code snippet: 

var existingvalue= current.isa_entity_site.u_function.toString().split(',');
gs.addInfoMessage("the iexisting value is " +existingvalue);
 
current.isa_entity_site.u_function.clear();
 
 
//I have used u_function.setvalue('');
//I have used u_function.clear();
//I have used u_function='';
//I have used u_function= [""];
//I have used u_function.setString("");

17044520887317334223790558637207.jpg

6 REPLIES 6

RebekaVon
Giga Contributor

Thank you so much for the suggestion, solved my problem.

vikas48
Tera Contributor

Thank You, everyone. I have sorted this out by directly assigning it to empty string.