• Resolved wadehammes

    (@wadehammes)


    For password protected downloads embedded via shortcode, the download button inside the form is an A tag and is causing a page jump since the href is #, while also not triggering the form to submit.

    Line 75 of sdm-utility-functions.php should actually be:

    $data .= '<button type="submit" name="sdm_dl_pass_submit" class="pass_sumbit sdm_pass_protected_download sdm_download_with_condition ' . $class . '">' . $button_text_string . '</button>';

    This has fixed the issue for me, just wanted to let you (and anyone else having an issue) know.

    • This topic was modified 4 years, 11 months ago by wadehammes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you very much for sharing your solution. I have submitted a message to the developers to investigate further your solution.

    Kind regards

    Plugin Author mra13

    (@mra13)

    Normally, that A tag should be working fine. I tested it just now to make sure it is working fine. So that is an issue with the particular theme or a conflict with another plugin on this site.

    I wouldn’t mind changing to “Button” tag but that will have some unintended consequences on many themes. So existing users will be shocked after an update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error submitting password-protected download shortcode form’ is closed to new replies.