PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

I *think* HTML form embed is working - am I missing something?

  1. I'm working on a site that the client will maintain, and the template we're using has one of those inbuilt sliders (Flexislider) that uses CPTs. The client needs an image and an e-mail signup in the home page billboard area, but I guess the slide CPTs aren't parsed for shortcodes. I didn't want to do the PHP embed because I don't want her to have to worry about editing the template to make any changes down the road.

    I loaded the form up on another page and grabbed the resultant HTML, and pasted it into the slide's content area. While I was at it, since the space for the form was pretty tight, I removed the labels and instead added their text as placeholders so the input fields would provide the direction.

    I've done three tests, and I get the form entries in GF as well as the notification e-mails from MailChimp. The only thing that doesn't seem to work is the in-page confirmation message text. The redirect works fine.

    I know from poking around elsewhere on this forum that creating a stripped-down template to hold the form, then pulling it in with an iframe, would be a more elegant solution. However this is one of those get-it-done-quick jobs, and I like the form without the labels for this project. But am I missing something? Are there unique values for every submission and will this eventually cause trouble in the database? Is there a better way to do it that won't put me over time and budget?

    Thanks in advance : )

    Posted 11 years ago on Friday March 8, 2013 | Permalink
  2. I can't recommend doing it the way you did, but if you have tested and the submissions and notifications are working fine, then this should work for you. I would test in different browsers and not logged in to the site to be sure it all works for you.

    The other quick way to do it would be to ensure the slider area content is parsed for shortcodes.

    Posted 11 years ago on Tuesday March 12, 2013 | Permalink
  3. Thanks, Chris. I am going to alter the template so it gets parsed for the shortcodes and going forward the client will be able to just drag in a form widget or whatever. But I think I'll leave the HTML there so it's "pretty" until she changes it.

    Hey, the option to use placeholders in the inputs instead of as form labels would make a pretty nice feature addition, don't you think? : )

    Posted 11 years ago on Tuesday March 12, 2013 | Permalink
  4. David Peralty

    There are some third party add-ons that move the labels inside the fields:

    All my best!

    Posted 11 years ago on Tuesday March 12, 2013 | Permalink