Mautic Community Forums

Form Redirect/Message > Add SPAN to innercontent

My idea is: On the form Edit > Details page I am using the Display Message option and the message field accepts only plain text. The problem is on the forms display side. The text is added into a div by itself which makes it impossible to target for CSS styling. Either allow for simple HTML in the message field such as a span or P tag to wrap around the text or add that to the content added to the div on the live side so that we can style it how we want.

Note: The span tag should be added dynamically with the text. It shouldn’t be there if the confirmation text is not there

As It Is Now

<div>Thanks for submitting!</div>

Proposed Change

<div><span>Thanks for submitting!</span></div>

Yes, I can target the parent DIV, but if I want a green background that BG will show even when there’s no content in the div because the div is always displayed.

I think these groups of people would benefit from this idea: Everyone

Why I think they would benefit from this idea: So they can style this confirmation notice to make it more noticeable and to adhere to website look and feel

Any code or resources to support this idea: Simply wrap the plain text in a span tag

Are you willing to work on this idea?: I would but I don’t think my help is needed on this one

What skills and resources do you need to explore this further? None.

I would also add another option for redirect url in new tab or window.