• Resolved markussss

    (@markussss)


    Hi,

    if I show the very same form on a popup and on the page itself the form will be there twice in the source code (even though not visible to the visitor).

    Form on the bottom of the page
    Form loaded on a popup when clicking a button

    I think everything works fine but it throws the following warnings, which kind of make sense.
    “Found 2 elements with non-unique id #forminator”

    Anything to worry about that? Should it be implemented in a different way?
    Using two separate forms is probably a way to go but comes with many other disadvantages.

    Thanks a lot!

    markus

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @markussss,

    Trust you are safe and thank you for asking the question.

    As far as the forms are working without any issues, there is nothing to worry about. What you noticed is just a warning which shouldn’t affect the functionality of the site.

    I checked this at my end but wasn’t able to replicate this on a test install. Can you please confirm if you are using the latest version of the plugin?

    Is that possible to share a URL where we can notice this warning?

    Can you please export the form and share it using any cloud services like Google Drive or DropBox so that we can give a closer look at this. Reff: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#forms

    Looking forward to hearing back from you.

    Best Regards,
    Nebu John

    Thread Starter markussss

    (@markussss)

    Hi Nebu,

    thanks for getting back to me. Yes, I am on the latest version.

    You can see the warnings here https://wohnbeton.at/ueber-uns/
    The form is embedded at the very bottom of the page AND also in a popup form which can be reached by clicking on “Kontakt” in the main menu.

    Find the exported form here
    https://drive.google.com/open?id=1mNxWfnt4drI5QPfGAKovdMrH-BoCAhUu

    best regards
    Markus

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @markussss

    I am afraid the link is protected, can you make it public so we can download the form?

    Does the issue show when we trigger the PopUp? If so, could you let us know how to trigger it?

    I checked the page I can see two forms in the source code but no issues on the browser console:
    https://monosnap.com/file/yv41BU50MUrmuCusJysvzDBOWNz68f

    Or you are using any SEO tool to test it?

    Duplicated IDs should be avoided as we use only one ID per page to trigger the element, however, having two forms with the same div ID won’t cause any issue in user experience or functionalities.

    Best Regards
    Patrick Freitas

    Thread Starter markussss

    (@markussss)

    Hi Patrick,

    Sorry – I forgot I need to change the permissions. This one should work now: https://drive.google.com/file/d/1mNxWfnt4drI5QPfGAKovdMrH-BoCAhUu/view?usp=sharing

    The warnings show when loading the page. You can see two forms in the source code as it is embedded twice on the same page (once directly on the bottom of the page, and once as a popup).

    I am also just looking at it from Google Inspect. Strange that you do not see those warnings. How can that be? I added a quick recording to show you how I see it

    https://recordit.co/wF7wntumnW

    best regards
    Markus

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @markussss

    Thank you for the record.

    After a couple of browser refreshes, I could get similar warnings on your website, it will happen because the Forminator follow a pattern in the IDs, however, I can’t replicate the same warning on my lab site using two forms on the same page, I tested using the same Divi theme.

    This shouldn’t cause any problem as you can see it is only a warning, if you would like to prevent it there are some ways for it:

    – Prevent two forms on the same page, for example, I may be missing anything but I can’t see how to trigger the Pop Up on the page, it won’t trigger manage the PopUp visibility to not load on that page.

    – Use different forms on the page, you can duplicate your form and create one new for PopUp then duplicate the fields to have different IDS.

    I pinged our developers to verify if and why it is happening on your website and not on our lab site.

    We will update once hearing back from the team.
    Best Regards
    Patrick Freitas

    Thread Starter markussss

    (@markussss)

    Thanks Patrick,

    I assume it really also depends on how the Popup is triggered. Divi does not come with a popup function out of the box.

    In my particular case I use Popups for Divi. The popup (including the form) is added in the footer but of course not visible to the visitor in the footer.
    https://wordpress.org/plugins/popups-for-divi/

    I would not care too much, but I like Forminator and will use it on more sites in the future. That’s why I try to understand the warnings and what to do about it.

    Thinking of it, of course it makes sense that there are warnings. The form technically exists twice on one single page.

    best regards
    Markus

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @markussss

    I recall this case from our previous reports and this issue was fixed in past. I was able to replicate this in my lab site. I pinged our Forminator Team to take a closer look at this again. Thank you for your patience while we look into this further.

    Kind Regards,
    Kris

    Thread Starter markussss

    (@markussss)

    Thanks Kris,

    I also found some older posts about the same or a similar topic. Thanks for taking a closer look at it. I need to research about tracking first, but I wonder if this issue also impacts Google Analytics trackgin.

    best regards
    Markus

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @markussss

    This shouldn’t affect the Google tracking, unless you add track events to a specific form ID so the best option would be having two forms, in case it is only user access tracking should be fine.

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @markussss

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

    Thread Starter markussss

    (@markussss)

    Hi Patrick,

    I thought that the issue is still open as it was replicable in the lap computer?

    I recall this case from our previous reports and this issue was fixed in past. I was able to replicate this in my lab site. I pinged our Forminator Team to take a closer look at this again. Thank you for your patience while we look into this further.

    best regards
    Markus

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @markussss

    We already reported it to our developers so we will work to fix and improve it,

    I am afraid we can’t give an estimated time to release the fixed version but we are already working on some fixes and more features are coming soon, so we can close the ticket for now, but you can ping us any time you need.

    Best Regards
    Patrick Freitas

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello @markussss ,

    I apologize for the confusion. Yes, this issue is reported to the Forminator team as a bug and they will be working on fixing it.

    kind regards,
    Kasia

    Thread Starter markussss

    (@markussss)

    Got it – thanks a lot! Looking forward to further developments πŸ˜‰

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Using the same form on a page AND on a popup “found 2 elements non-unique id”’ is closed to new replies.