Notifications with tables in the html not sending #1029
Replies: 2 comments
-
Hi @MariskaMB, I have played around with this on my end and I cannot duplicate this issue. Are you 100% sure there weren't any errors in the template code? Can you try re-adding a table in the notification template and see if it fails? And if so, can you copy and paste the template code here? 🙂 |
Beta Was this translation helpful? Give feedback.
-
I had a similar situation, I am trying to output the table of data users can enter (using the Add+ button to add new rows). The output of field.valueAsString is a comma-delimited list of all of the cells with no formatting. I use [Insert_AI_code_generator_of_choice] to convert the field.value into table as that is what the user entered. It came up with this for the admin template - I have not touched the user template as yet:
Before I added the code starting With the above admin template it sends the user email fine, but not the admin email, and there are no visible errors that I can see. if Bonus point: how do we output an html table of a field.value ? I see no reference to this in the documentation. Thanks |
Beta Was this translation helpful? Give feedback.
-
Describe the bug or issue you're experiencing
When using a notification template with table elements in de html, the notification does not get sent. No error is logged either, so tables may not be the only problem. I managed to get the notification to be sent only by removing all tables in the template, however.
Steps to reproduce
<table>
element.Expected behavior
Notifications being sent with all the usual html elements, or alternatively an error being logged.
Craft & Plugin Info (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions