Add Text to Rest API Using Script

Add Text to Rest API Using Script

I would like to modify the text in the Rest API of a ticket. For example, if I have this:

"res_602":{
      "qstn_text_304":{
      "value": "VM1"
},

I'd like to change it to show:

"res_602":{
      "qstn_text_304":{
      "value": "VM1"
      "key": "hostname"
},

How can I write a script on form submit to do that?

Thanks,
Joel

                  New to ADSelfService Plus?