• https://176.32.230.47/juta.co.uk/about-juta/downloads/

    Hi can you have a look at this page please i have got multiple headings using the same form and different sets of download id’s but its not working properly!

    The first one does work but soon as i tick any of the others the form appears at the top and the downloads dont work (just one link) can you help please or help nme with a seperate solution as the client wants to seperate the downloads into category headings…

    for example code…

    GEOMEMBRANES
    [email-download download_id=”1286, 1289, 1292, 1295″ contact_form_id=”1185″]

    ———————————————-

    GEOTEXTILES
    [email-download download_id=”1298, 1301, 1304, 1307, 1310, 1313, 1316″ contact_form_id=”1185″]

    ———————————————-

    JUTAMAT GCL
    [email-download download_id=”1319,1322,1325″ contact_form_id=”1185″]

    Many thanks

    Chris

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hmmm. So, first off, get rid of “hidden form”. Don’t check that. Get it working without doing the hidden form thing .. hidden form sometimes breaks things.

    Secondly, I’m not sure that you can do multiple forms with the same contact_form_id. I think that’s going to cause problems. Or, maybe not, maybe it will work, but I’m not sure at the moment – for testing purposes, let’s get rid of that and then you can go back to it if needed .. so, instead, I think you’ll want to have multiple contact forms that are basically duplicates of each other, but they’ll have different IDs, so that you can do multiple forms on one page and not worry about any conflict (which, again, may not be a problem, but it might be).

    So, I suggest you do this:

    • make a new page (a new test page you can mess with)
    • make 2 duplicates of your existing contact form (the 1185 id form)
    • on the new page, put 2 EBD shortcodes on there — 1 for each of the new duplicate contact forms you just made in the prior step (do NOT put the 1185 form on that page … you want everything to be new on this new test page). Use whatever download_ids you want for each of these two new shortcodes (doesn’t matter for what we’re trying).
    • uncheck the hidden form option in the EBD settings.
    • now go test it and see if you see 2 forms on the page. if so, fill in and submit the first one and make sure it works, then do the second and make sure it works. Assuming both work, then go recheck the hidden form thing and try again (I’m not sure that you can do hidden form with more than one form on the page, so this may still break, but at least we’ll know for sure that’s an issue at this point).
    • This reply was modified 8 years, 4 months ago by dtynan.
    • This reply was modified 8 years, 4 months ago by dtynan.
    • This reply was modified 8 years, 4 months ago by dtynan.
    • This reply was modified 8 years, 4 months ago by dtynan.
    • This reply was modified 8 years, 4 months ago by dtynan.

    yeah, the more I think about it, the more sure I am that you can’t have multiple forms on the page when you have checked “hidden form” (even if the contact_form_ids are different). I think that because I believe it hides & unhides the div holding the form by using the div’s id. So if you had multiple forms on the page and hidden form was checked, then you probably have multiple divs with the same id (technically a css error) and the browser just picks the first one to hide and unhide. That probably messes up your whole page design really…

    I haven’t checked the code to make sure that’s the case, but I suspect it is…

    yeah, if you view source on your page, then you’ll notice that you have a bunch of divs that have an id of #downloadinputform

    that’s a problem. each form has a div named that and then each form has some javascript to hide or unhide that div and i’m pretty sure that that isn’t going to work right (again, probably why it always finds the first one on the page and hides/unhides it.

    you would have to modify email-before-download.php to fix that. you might be able to change the selector so that it looks for #downloadinputform within the current form. or maybe put in some sort of counter so that when it creates things it does #downloadinputform1 then #downloadinputform2 and so on. Regardless, you’re gonna have to dig into that code and figure out how to do something like that .. you’ll need to know php, javascript, and css selectors to be able to do it.

    Not sure if this is what you need but it sure was what I needed – although I could make the 3 PDF’s show on the list they kept going to the same PDF- I was missing this very important part – just to put in the form code: <ebd /> – see screenshot https://s.w.org/plugins/email-before-download/screenshot-7.png?r=1523404

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘multiple forms on one page not working’ is closed to new replies.