How to set translated value in short description?

vardhini
Kilo Expert

Hi All,

My requirement is updating short description with HRService(reference value) and Breif description value(user input variable)

when change the language the translated value of HR service is not updating short-description,But in alert am getting the translated value.

function onLoad() {

var hService=g_form. getDisplayBox('hr_service'). value;
alert(hService);
var shortdesc = hService + '-' + Breif_desc;
g_form.setValue('short_description', shortdesc);

 

}

Please help me.

 

1 REPLY 1

Aman Kumar S
Kilo Patron

Hey,

Please check below article:

How to get field translated text using client-side script

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar