Forum Discussion
BradLemke
5 years agoQrew Assistant Captain
Just for kicks, give this one a shot: javascript:alert(\"" & $message & "\")
It's not always the case, but there are times when using the \" in place of a single ' will make an otherwise perfect code actually function with Javascript. They're both effectively accomplishing the same task, but the single ' can be inconsistent from time to time.
------------------------------
Brad Lemke
------------------------------
It's not always the case, but there are times when using the \" in place of a single ' will make an otherwise perfect code actually function with Javascript. They're both effectively accomplishing the same task, but the single ' can be inconsistent from time to time.
------------------------------
Brad Lemke
------------------------------
PaulPeterson1
5 years agoQrew Assistant Captain
Yep, that was one of the things I tried too. same result
------------------------------
Paul Peterson
------------------------------
------------------------------
Paul Peterson
------------------------------
- BradLemke5 years agoQrew Assistant CaptainAlrighty, then take a close look at the $message variable contents. It's entirely possible that the 'message' being pulled into the code contains characters that are breaking the code.
------------------------------
Brad Lemke
------------------------------- PaulPeterson15 years agoQrew Assistant CaptainThe only special character used in the message text is \n. And, yes, the last character in the message is going to be \n. I changed the message to equal to Left($message, Length($message) - 2), still the same result.
------------------------------
Paul Peterson
------------------------------- BradLemke5 years agoQrew Assistant CaptainIf you replace the $message variable with a field reference, such as [Record ID#], do you get the same error?
------------------------------
Brad Lemke
------------------------------