- This topic has 5 replies, 2 voices, and was last updated 1 year, 11 months ago by Tom.
May 4, 2019 at 8:26 am #888986Raymond
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.May 4, 2019 at 3:39 pm #889179TomLead DeveloperLead Developer
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).May 4, 2019 at 4:54 pm #889211Raymond
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.May 5, 2019 at 7:48 am #889722TomLead DeveloperLead Developer
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.May 6, 2019 at 10:30 am #890922Raymond
Understood, thanks Tom.May 6, 2019 at 3:41 pm #891123
- You must be logged in to reply to this topic.