MeaganN
3 years agoQrew Member
Button with Mailto link - Code stops working if & is in a field
Hello,
I have a button that generates an email with fields from a specific record. If a field contains any contents with an &, anything below the & will not populate in the email. How can I ensure the Mailto Link allows & characters?
Example:
"mailto:"&""&[Email 1]&
"\n"&"?subject="&"\n"&[Record]&""&
"&body="&"Location Name: "& [Location Name]
"%0D"
&"field2"&
"%0D"
&"field3"&
""
--- If Location Name for the records is AT&T, then the body of the email will be "AT" and nothing after... ---
How can I ensure the mailto link copies the exact field contents without stopping at the & character?
Thanks!
------------------------------
Meagan
------------------------------
I have a button that generates an email with fields from a specific record. If a field contains any contents with an &, anything below the & will not populate in the email. How can I ensure the Mailto Link allows & characters?
Example:
"mailto:"&""&[Email 1]&
"\n"&"?subject="&"\n"&[Record]&""&
"&body="&"Location Name: "& [Location Name]
"%0D"
&"field2"&
"%0D"
&"field3"&
""
--- If Location Name for the records is AT&T, then the body of the email will be "AT" and nothing after... ---
How can I ensure the mailto link copies the exact field contents without stopping at the & character?
Thanks!
------------------------------
Meagan
------------------------------