Forum Discussion
_anomDiebolt_
10 years agoQrew Elite
BTW, your basic problem is probably malformed JavaScript. Your RelatedProject variable is assigned a number 0 while your Status variables is probably assigned a text value:
"var RelatedProject=0" & ";" &
"var Status=" & [setStatusToSendToUpdateScript] & ";" &
All text values need to be quoted in JavaScript so you need to do this with the second statement:
"var Status='" & [setStatusToSendToUpdateScript] & "';" &
Another reason you should use the image onload technique is to get out of the formula language as quickly as possible so you never have to deal with all the oddities of escaping and embedding JavaScript statements within QuickBase formulas statements.
"var RelatedProject=0" & ";" &
"var Status=" & [setStatusToSendToUpdateScript] & ";" &
All text values need to be quoted in JavaScript so you need to do this with the second statement:
"var Status='" & [setStatusToSendToUpdateScript] & "';" &
Another reason you should use the image onload technique is to get out of the formula language as quickly as possible so you never have to deal with all the oddities of escaping and embedding JavaScript statements within QuickBase formulas statements.