I have an email template that stops working when i wrap it in a div. Can anyone tell me why the error.
The code looks like this:
I have an email template that stops working when i wrap it in a div. Can anyone tell me why the error.
The code looks like this:
Try substituting the quotation mark characters with the HTML entity–I think it’s:
"
If you meant from this:
to
It did not work. It took the style away.
If that change also got rid of the AppSheet error, then there may be an irreconcilable difference.
If your HTML is in the task’s Email Body property itself, you may need to instead use an Email Body Template. I and others have encountered quirky issues where valid HTML in the Email Body property isn’t successfully parsed by AppSheet (although in my experience, the result is an error saving the app in the editor, not an error at the time of processing the automation as you encountered).
I’m no HTML expert, but another technique to try if it makes sense to you is to not use div and instead put the style info within the paragraph using span. I successfully use span with classes with names in quotation marks in the Email Body property of automation tasks.
I’m actually using an email body template. However, I like how emails come out using the email body property itself. Really what i am trying to accomplish is to delete spaces above when lower codes get executed. I’ll have 48 different IF statements in my template. Example, this is how the email looks when the 3 IF statement get executed:
These are the spaces between the IFS statements.
I would like just 1 line spacing. I suppose, it can be accomplish using HTML and CSS. Can this be done using Span?
I’m not proficient enough to suggest an HTML technique.
However, I would think that you could design your template to avoid the superfluous vertical spacing to begin with. It sounds like maybe you have many separate IFS expressions each in a separate paragraph. Try embedding the paragraph breaks within each IFS expression so that they don’t accumulate.