Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4330 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

When trying to put the contents of an HTML email into a field or variable or something like that for the Email Body, inevitably the HTML code is going to contain quotation marks that will confuse Filemaker into looking for operators that actually aren't needed. Is there an easy way to handle this or do I have to go through the HTML and markup each occurrence of a quotation mark with a backslash or forward slash (I don't remember exactly how).

Any tips would be much appreciated.

Thanks.

Posted

There should be no issue with storing the HTML in a text field. As long as you reference the field itself (as opposed to manually typing in HTML) in a calculation you should have no problem there either. Try this out to make sure but you shouldn't have to escape anything. Let me know if you have trouble getting it to work and specifically what the issue is.

Posted

If you happen to be creating the HTML (with quotes) not in field, but in a variable or in the calc engine directly...

you can 'escape' the quotes with ""

"<input type="text" name="fieldname" value="" & currentfieldName & "">"

I tend to like creating the HTML "normally" in BBEdit and then add the "" (with find/replace) just before quoting the whole thing and pasting in the dialog. to use field values, you end the quote, add the field name & start the quote again, as above.

HTH,

Beverly

  • 2 months later...
  • 10 months later...

This topic is 4330 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.