Set the value of a radio button if a text field contains data.
I am attempting to set the value of a radio button is a text box contains data. I get the error messahe "SyntaxError: invalid property id 1: at line 2.
Here is my code.
If({{#assign "involvedPersonsVar"}} {{listIndex externalOffenses "involvedPersons" 1 }} {{/assign}} {{listIndex "involvedPersonsVar" "lastName" 1 filterField="involvement.name" filterValue="VICTIM_IN_OFFENSE"}}().length > 0)
this.getField(“Wit1").value="Victim";
else
this.getField("Wit1").value="";
Any help would be appreciated.
