[Resolved] recommendation on way to add form to page hero element

Home Forums Support [Resolved] recommendation on way to add form to page hero element

Home Forums Support recommendation on way to add form to page hero element

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #888986
    Raymond

    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.

    #889179
    Tom
    Lead Developer
    Lead Developer

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

    #889211
    Raymond

    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.

    #889722
    Tom
    Lead Developer
    Lead Developer

    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.

    #890922
    Raymond

    Understood, thanks Tom.

    #891123
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.