How do I get label of description

himabindu_b02
Kilo Contributor

When I am using g_form.getLabel('description') code in client script I am getting Short Description label even for   g_form.getLabel('short_description') also. To get description label what I have to use?

2 REPLIES 2

Vinobalu
Kilo Expert

Hi Himabindu,


Try the below code:



g_form.getLabelOf('short_description')


g_form.getLabelOf('description')



Thanks,


Vinobalu


Raju Koyagura
Tera Guru

Use below code...


document.getElementById('element.hr_case.description').innerText //for description label


document.getElementById('element.hr_case.short_description').innerText //for short description label



Note: Make sure change the table name based on your requirement.