Your function should be like this, Make sure you escape the double quotes when assigning this to a variable in Studio. If your default language is VisualBasic, then this is done by adding another double-quote. For example: myString = "function(e,a) {document.getElementById("id"); }" will probably throw an error. Alternatively, you should write it like this: myString = "function(e,a) {document.getElementById(""id""); }"
function(element,inDataStr) {
var dataJson = JSON.parse(inDataStr);
document.getElementById(id=“cphMain_cphMain_chbSCssn”).click()
var ssnp3 = document.getElementById(id=“cphMain_cphMain_txtSCSsn_txtSCSsn_part3”)
ssnp3.value = dataJson.inSSNp3
var lstname = document.getElementById(id=“cphMain_cphMain_txtSCLstNa”)
lstname.value =dataJson.inLstname
var fstname = document.getElementById(id=“cphMain_cphMain_txtSCFstNa”)
fstname.value =dataJson.inFstname
}
The input data should be assigned like this (escaping the double quotes in VB style):
“{”“inSSNp3"”:““value1"”, ““inLstname””:”“value2"”, ““inFstname””:““value3"”}”