• Resolved Jan Reidel

    (@janreidelde)


    When building a custom form with the shortcode [newsletter_profile_field …/] the created form has no action. HTML is <form action=”#”… Hence nothing happens when clicking on the profile save button.

    Using the standard profile form by the shortcode [newsletter_profile /] results in an action that saves the profile.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Michael Travan

    (@michael-travan)

    Hello @janreidelde,

    do you have a live version of this form I can take a look at?

    Michael

    Thread Starter Jan Reidel

    (@janreidelde)

    I’m sorry, I have no live version but I can post the generated HTML of that form if it helps?

    Thread Starter Jan Reidel

    (@janreidelde)

    These are the shortcodes I used to create a custom form which contains the same field like the standard form.

    [newsletter_profile]
    [newsletter_profile_field name="email"/]
    [newsletter_profile_field name="first_name"/]
    [/newsletter_profile]

    This is the form generated by the shortcodes.

    <form action="#" method="post">
    <input type="hidden" name="nk" value="0-0">
    <div class="tnp-field tnp-field-email">
    <label>E-Mail</label>
    <input class="tnp-email" type="text" name="ne" required="" value="[email protected]">
    </div>
    <div class="tnp-field tnp-field-firstname">
    <label>Vorname</label>
    <input class="tnp-firstname" type="text" name="nn" value="John">
    </div>
    <div class="tnp-field tnp-field-button">
    <input class="tnp-submit" type="submit" value="Profil speichern">
    </div>
    </form>

    This is the shortcode for the standard form with just email and firstname configured.

    [newsletter_profile /]

    This is the standard form generated by the shortcode.

    <form action="https://localhost/www.mydomain.de/?na=ps" method="post">
    <input type="hidden" name="nk" value="0-0">
    <div class="tnp-field tnp-field-email">
    <label>E-Mail</label>
    <input class="tnp-email" type="text" name="ne" required="" value="[email protected]">
    </div>
    <div class="tnp-field tnp-field-firstname">
    <label>Vorname</label>
    <input class="tnp-firstname" type="text" name="nn" value="John">
    </div>
    <div class="tnp-field tnp-field-button">
    <input class="tnp-submit" type="submit" value="Profil speichern">
    </div>
    </form>

    Both forms look pretty much the same except the form action in row 1. The standard form has the correct URL while the custom form has just the hashtag symbol (#) as the form action.

    Clicking on the profile save button results in case of the standard form in saving the field values while in case of the custom form the values are just cleared from the field and are not saved.

    Plugin Support Michael Travan

    (@michael-travan)

    Hello @janreidelde,

    we’re troubleshooting this, thanks for your patience.

    Michael

    Plugin Support Michael Travan

    (@michael-travan)

    Hello @janreidelde,

    this should have been fixed with yesterday’s update. Could you confirm, please?

    Michael

    Thread Starter Jan Reidel

    (@janreidelde)

    Hello @michael-travan ,

    looks good, works as expected. Thank you.

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