Site logo

Archived topic

recommendation on way to add form to page hero element

5 replies · Started by Raymond on May 4, 2019

Viewing posts 1–6 of 6

I'm starting off with Pivot from the site library.
Is there a recommended way to add a form into the page hero element?
On form submission, I would like the form to redirect to an external URL like https://app.mysite.com/start?field1=abc&field2=def

I'm comfortable with coding, but I much prefer a plugin, if possible.

I also use Beaver Builder.

Hi there,

HTML can be added into your Page Hero by default.

What is the form supposed to do? Capture emails? If so, you'd need to use a service like MailChimp (or many others).

Hi Tom, thanks for the response. The form needs to capture some potential user information like their zip code and a couple of boolean responses from some checkboxes. When the user submits the form, we will pass these fields to our main application via query or matrix params, and we'll use them to begin a "guest" workflow into our application.

Our Wordpress blog will live at https://www.mysite.com and will act as public-facing pages, while our main application will live at https://app.mysite.com, hence the redirect URL on form submission to https://app.mysite.com/start?zip=12345field1=true&field2=false. For example, we won't be using Wordpress user authentication. Our users will be logging into our application at https://app.mysite.com/login.

If I have to, I can code up the form and style them within the page hero element, but I was just wondering if there was a better or recommended way to do this.

Hi there,

That's likely something you need to code up. The Page Hero itself shouldn't be an issue, as it will accept any HTML. You just need to form action to go to a PHP file which handles the request.

Understood, thanks Tom.

No problem :)

This archived topic is closed to new replies.