• Resolved Andamo

    (@ipbreeze)


    Sorry, can’t figure out how to achieve this and could not directly find anything on the forum that might help me. Hopefully someone can point me in the right direction.

    I have five pdf thumbnails lined up and above those a contact form with the required e-mail address field (I don’t want to use a popup). A user should enter their e-mail and then click on the pdf they would like to download. I somehow have to target the correct download id from each thumbnail link, not sure whether I have to target the contact form as it is present by default. What’s the best way to achieve what I want? See the cases section at http://782cbf61dd.testurl.ws/

    Thanks in advance for any help!

    https://wordpress.org/plugins/email-before-download/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I looked at the cases part of the page you pointed at. I don’t see any way to make that work like you have it without doing something custom (or maybe using some other plugin that could do it).

    If you had a submit button underneath the 5 pdf choices then the 5 pdf choices could perhaps be 5 download choices on a single EBD form (implemented as radio buttons). You’d still have to use some crafty css and ikely some javascript and perhaps modify the plugin a little in order to get the radio button itself hidden and the image be clickable to select it with an outline or something. The user would then hit the Submit button and it would all be like a normal multi-download EBD form set up as radio buttons (a single select rather than checkbox multiselect). That seems doable to me, but would require some work & customizations.

    Another way might be to make 5 EBD forms on that page. On each one you’d have to hide the input box for the email (the your-email field). You would have 1 email input box, like you have now, and 5 hidden ones. Then, you’d have to do something like make an onSubmit handler (or something similar) which would be in each of the 5 forms so that it jumped in and copied any text in the 1 visible input box into the hidden your-email input box for the form where the submit button was clicked. That would make getting the email address into the correct form work (even though you’d only have 1 visible input field). Each form would have the thumbnail image which would actually be a submit button for that form and each one would need a hidden variable with the correct download_id for that particular form. Obviously this is a good bit of work.

    So, that’s two possibilities off the top of my head. There are various other ways it could be done. It might be worth looking at some other plugins. Or, it would be relatively easy to just code the javascript into some static html that would accomplish the UI that want, but then you’d lose the stuff like the notification email that gets kicked out and the data into the database and such, which sort of defeats the purpose.

    Good luck…

    Thread Starter Andamo

    (@ipbreeze)

    Thanks a lot for your kind, swift and helpful response! I already figured it’s not straightforward what I want although visually this seems the simplest option to offer the downloads.

    Had it working with popups but that seemed a bit of an overkill and I don’t like popups on mobile devices that much. Will have to consider the options (I prefer your no2), the ones you describe are a bridge too far for me to achieve probably because I am not really into coding (hence the use of plugins ;). So maybe will find me a developer who can do this for me or will have to accept the fact that I always have to do it with a popup.

    Anyway, thanks for your thoughts on the subject, really appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘target download id from thumbnail (without popup)’ is closed to new replies.