On Hold Reasons

yardenKrispel
Tera Contributor
Hey ! I would be grateful for help on how I do that every time the On hold reason field is changed (at that moment even before saving) - the label of the "On hold reason" field is copied to the "Short description" field.
2 REPLIES 2

Badal Khojare
Mega Sage
Mega Sage

Hi @yardenKrispel ,

Modify below code in an client script as per your fields: If you do not want it when the field is empty remove the if part from below script:

var tes = g_form.getValue('short_description') ;  

 

var test2=g_form.getValue('u_copy_short_description');  

 

 

 

  if(test2== '' )  

 

 

 

  {  

 

 

 

  g_form.setValue('u_copy_short_description',tes);  

 

  }  

 

 

Please Mark My Response as Correct/Helpful if it helped.
Regards,
Badal Khojare
Community Rising Star 2023

Unfortunately it doesn't work!