Jump to content

Recommended Posts

Posted

Hey guys,

I'm using Form builder module by Ryan and I'm trying to render HTML success message after form is sent using value from this field:

image.thumb.png.0120471c6c618eb51228fe029d04676a.png

but it renders exactly as it is written in the field, not as HTML. To render it I just use echo

<?= $successMessage ?>

What am I missing?

 

Thanks for any help. ?

Posted

I have no access to the module to test it myself but..

have you tried enclosing it with html tags?

html:<h1>Thank you!<br>We will contact you soon.</h1>

 

Posted
On 9/6/2019 at 9:04 PM, Jo Justo said:

I have no access to the module to test it myself but..

have you tried enclosing it with html tags?


html:<h1>Thank you!<br>We will contact you soon.</h1>

 

Also didn't work. I've solved it like this:

<?= str_replace("html:", "", html_entity_decode($successMessage)); ?>

But I wouldn't call it the best practice hehe ?

 

Posted
1 hour ago, DooM said:

Also didn't work. I've solved it like this:


<?= str_replace("html:", "", html_entity_decode($successMessage)); ?>

But I wouldn't call it the best practice hehe ?

 

If you are looking for a better answer to your original question, I would strongly suggest you post your question in the dedicated Form Builder VIP Support Forum.  If you don't have proper access to post in this forum, please send a PM to @ryan.

If you need for a Forum Moderator to move this to the Form Builder VIP Support Forum, please state so and one of us will gladly move this topic.  Did not want to move this question and you don't have access to the VIP Support Forum.

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...