How to pass HTML hidden input to script

Daveedd
Tera Contributor

Hello all,

 

I'm listing records that meet certain criteria.  I'd like to add a button next to each that will create a child record on press.  Most of it is in place, however I would like to pass the short description and sys_id of the parent into the child.

 

In short, in the code below I'm trying to pass the HTML values {{::item.short_description}} and {{::item.sys_id}} to the server script lines

gr.setValue('short_description',XXXX);
gr.setValue('parent',XXXXX);

 

I thought HTML hidden inputs would be the way, but that doesn't seem to work.  Any help would be appreciated. 

2 REPLIES 2

Thanks for the reply Harish.  I have it working that users can enter data into an HTML input and work with that in the server script.  It just doesn't work for the HTML input type hidden.  Basically I want to pass the sys_id and short_description from the ticket next to the button.