Hi @liquidonthedrums,
I’m afraid, due to security reasons we do not allow adding html in the fileds.
Please attach the screenshots of your registration and your fields so we can better understad your issue.
Regards.
Hi @liquidonthedrums
Sorry for the late response.
Could you please check your recent response again? There are links that are making confusion. Are you able to check the raw email headers when you received the submitted email from the newly registered user?
Feel free to re-open this thread by changing the role to “Not Resolved” so we can get back to you.
Regards,
Hi Champ,
Thanks. I don’t seem to be escaping the html tags in my messages. Here goes again.
I have added screenshots below to highlight the issue I’m having.
Reg Form – https://pasteboard.co/JuLcJCz.png
In the reg form I am using an <a> tag in the ‘edit choices’ field in the form builder to create links for the T’s and C’s pages. These are the ‘(Click here)’ green links in the image that display in the front-end.
Admin Email – https://pasteboard.co/JuLd7JC.png
When the form is submitted, the admin email is sent using the {submitted_registration} merge tag and the fields that had <a> tags in the label are returned ‘(empty)’.
I have other checkbox fields in the form that don’t have and HTML markup in the ‘edit choices’ field and they return the choice value as expected in the email.
Thanks
Hi @liquidonthedrums
Unfortunately, UM forms strip out all HTML from those fields for security reasons.
I wonder why you need to add those HTML tags in the label/text instead of using the Email HTML template to add your code there?
Regards,
Hi Champ,
I’m not sure I understand what you mean? The links are in the labels on the registration form as it is a way to direct a new user to the Terms and Conditions pages when they are registering. (as opposed to a modal etc).
The email that gets sent to admin just uses the {submitted_registration} merge tag that UM provides.. So I guess I am using the default functionality.
I don’t really nderstand your comment about HTML tags in the label vs. the email as they are 2 different parts of the registration process, one is user facing and the other is administration comms.