Jump to content
Sign in to follow this  
DooM

FormBuilder Module - HTML Success Message?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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>

 

Share this post


Link to post
Share on other sites
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 🧒

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By BFD Calendar
      We're looking for someone who can make an addon for our website using Formbuilder and publishing the pages to a Google Calendar instantly.
      The use is a setup for laser reservations for a modelbuilding lab, see www.mekano.info to have a bit of an idea. On the 'calendar' page you'll find a linked Google calendar that lists all events per day. These events are now all added by staff members in a shared Google calendar. Underneath the calendar is a list of recent use of our lasercutters, generated by a form where user, machine and start time are entered and duration is calculated by editing that form. I have a likely form to add a reservation to enter user, machine and time/date but we want them to go into our shared Google calendar 'immediately'. If you look at early June in the calendar you can see how it should look like.
      I know there are simple solutions to make this happen but haven't figured a working out.
      We want Google calendar so all our staff can subscribe and see the calendar on all their devices. On the other hand we want to keep a list of students who made reservations because at some point they are limited.
      If you're interested I can give you a login to see a bit more behind the curtains. Part of the website is public for students and guests, quite a few functional pages are only visible when you're logged in.
    • By J_Szwarga
      What is the best practice for having a form (only accessible to a logged in user) save the user's progress between sections of the form? Fieldsets? Multiple forms?
      Use case: I have a very long application form that would take 30 minutes for the applicant to fill out and I would hate for all progress to be lost due to user error. The progress needs to be logged into the user's page.
      Thanks!
    • By Marcel
      Hey, 
      - we made a page as admins
      - as admins each  <img> tag is loaded and images are displayed
      - we tested the page as a pre-definded test user which is "guest" (Admin Theme: Reno)
      - as test user each <img> is missing and so no image is displayed
      I checked this in dev-mode on firefox and chrome. Does anyone have an idea or has had similar issues?
       
      Thank you in advance.
       
      Marcel
    • By Noel Boss
      To create a new gitlab issue, I'd like to send an Email to the following email address using FormBuilder: 
      incoming+account/repository@incoming.gitlab.com
      unfortunately, the / in the email gets striped by the sanitizer:
      wire('sanitizer')->email(incoming+account/repository@incoming.gitlab.com'); // output: incoming+accountrepository@incoming.gitlab.com Is there any way to configure the sanitizer? Any other Ideas how to send the mail to this address?
       
      Ps.: I can not define the email format as it is defined by gitlab. The format is also kind of "common" and known as email-alias in the form of emailaccount+alias@domain.com – gmail uses it to label mails…
      https://help.wodify.com/hc/en-us/articles/234441508-How-Do-I-Create-an-Email-Alias-
    • By quickjeff
      Hi Guys, 
      I wanted to start this thread to see what others are doing to make sure they are compliant with GDPR.
      Basically, a ton of websites are built on WordPress and I am seeing tons of plugins being rolled out to help with cookie compliance etc. 
      Processwire however, doesn't have anything available. Also, if we are using FormBuilder, do we need an opt-in checkbox?
Ă—
Ă—
  • Create New...