• Resolved Cogdiss

    (@cogdiss)


    Hi there,

    I’m using the Hubspot plugin on a build at the moment and I’ve run into an issue. We have a subscribe form which we’re adding to the site footer, and also to a pop-up linked to in the site header.

    I’m adding the forms using the WordPress shortcode in the theme template files, e.g. <?php echo do_shortcode([shortcode]); ?>

    The issue I’m having is that both forms have the same CSS ID, which is causing issues on submission – submitting the form in the footer doesn’t show the thank-you message, because instead it’s being displayed in the form in the pop-up.

    Is there any way around this?

    Thanks

    Hannah

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support cheffernan

    (@cheffernan)

    Hi @cogdiss ,

    Can you provide a link to the page in question? It would be useful for me to understand what exactly this looks like.

    Best,

    Conor

    Thread Starter Cogdiss

    (@cogdiss)

    Hi Conor,

    The website is here: https://afc-new.makeaspectacle.co.uk/

    it’s currently behind a htaccess password because it’s a dev site, the details for these are:
    username: afc
    password: NewSite2024

    On the homepage you can see a sign-up form in the footer; there’s also a ‘subscribe’ button in the top header that opens a pop-up containing the same form. If I fill out the footer form and click ‘submit’ I don’t see the thank-you message, but if I then open the pop-up after filling out the footer form I can see the thank-you message in the popup.

    Clicking submit is subscribing people to the list, but they don’t know they are being subscribed as there aren’t any visual cues.

    It’s also worth mentioning that this won’t be the only instance of us displaying the form more than once on a page, it will also be included in articles and on archive pages e.g. https://afc-new.makeaspectacle.co.uk/community/equipment-finance/

    Thanks
    Hannah

    Plugin Support cheffernan

    (@cheffernan)

    Hi Hannah,

    Thank you for getting back to me. I think you should clone the form and have different instances of the same form in the pop up vs the footer. This should fix your issue and should also allow you to differentiate which form users are submitting which might be a useful data point for you.

    Best,
    Conor

    Thread Starter Cogdiss

    (@cogdiss)

    Hi Conor,

    Thanks for that, we’ll do as you suggest.

    Thanks

    Hannah

    Plugin Support sasharma

    (@sasharma)

    Marking as resolved. Feel free to re-open if you have any further issues.

    Regards
    Sahil

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