Populate Short Description Field On Incident Form

snow7
Kilo Contributor

Hi Guys,

I want to populate some text filled in Short Description Field on Incident Form for a particular user.Let me know how to achieve this through client script

14 REPLIES 14

Anurag Tripathi
Mega Patron
Mega Patron

Hi Gourav,



Tts simple,



g_form.setValue('short_description', 'HAHAHA');



My question is, why do you need to do it for a particular user??


-Anurag

i need just for testing purpose.If I want for multiple users with specific role then what I need to do?


please give me the bussiness rule to that will automatically set 'short description' of every new incident to 'this is an automatic description'

snehabinani26
Tera Guru

HI Gourav,



var userID = g_user.userID;


if(userID == "sys_id of the user you want"){


g_form.setValue("short_description","test");



}