• Resolved wordmax

    (@wordmax)


    form displays everything else ok except does not show the label above the lists dropdown options…

    [newsletter_form lists_field_layout="dropdown" lists_field_empty_label="select one..." lists_field_label="pick a topic!” /]

    php 8.2 latest wp version using blocksy theme

    see screenshot for clarification

    View post on imgur.com

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

    (@michael-travan)

    Hello,

    do you have a live example of that form?

    Thanks,

    Michael

    Thread Starter wordmax

    (@wordmax)

    Don’t wanna share url via public. I’m using the exact shortcode format as suggested in the support/FAQ page on your site documentation.

    https://www.thenewsletterplugin.com/documentation/subscription/subscription-form-shortcodes/

    An easy example of how to use shortcodes is the following, where lists are shown as a dropdown with a personalized label:

    [newsletter_form lists_field_layout="dropdown" lists_field_empty_label="Select..." lists_field_label="Our topics” /]

    We just changed our topics to sale dates for testing out to promote special sale days…

    You can see the resulting html output view source code below…

    <div class="tnp tnp-subscription "> <form method="post" action="../wpdemo/?na=s"> <input type="hidden" name="nlang" value=""> <div class="tnp-field tnp-field-firstname"><label for="tnp-1">First name</label> <input class="tnp-name" type="text" name="nn" id="tnp-1" value="" placeholder="" required=""></div> <div class="tnp-field tnp-field-surname"><label for="tnp-2">Last name</label> <input class="tnp-surname" type="text" name="ns" id="tnp-2" value="" placeholder="" required=""></div><div class="tnp-field tnp-field-email"><label for="tnp-3">Email</label> <input class="tnp-email" type="email" name="ne" id="tnp-3" value="" placeholder="" required=""></div> <div class="tnp-field tnp-lists"><select class="tnp-lists" name="nl[]" required=""><option value="" selected="" disabled="">Select...</option><option value="1">Aug 15 2024</option><option value="2">Sept 15 2024</option><option value="3">Oct 15 2024</option></select></div><div class="tnp-field tnp-field-button" style="text-align: left"><input class="tnp-submit" type="submit" value="Register" style=""> </div> </form> </div>

    specifically…where is the label value?

    <div class="tnp-field tnp-lists"><select class="tnp-lists" name="nl[]" required=""><option value="" selected="" disabled="">Select...</option><option value="1">Aug 15 2024</option><option value="2">Sept 15 2024</option><option value="3">Oct 15 2024</option></select></div>

    see updated screenshot there is no label showing above the list dropdown

    View post on imgur.com

    I don’t know how to be any more clear than this. It should be easy to duplicate if it’s not some random issue on my server/end. Thanks

    • This reply was modified 3 months, 3 weeks ago by wordmax.
    • This reply was modified 3 months, 3 weeks ago by wordmax.
    • This reply was modified 3 months, 3 weeks ago by wordmax.
    Plugin Support Michael Travan

    (@michael-travan)

    Hello @wordmax,

    I’ve tried to replicate this and I can confirm there is a bug. I’ve passed this to our developers for further checks, I’ll get back to you once I have some updates. Thanks for your feedback!

    Michael

    Thread Starter wordmax

    (@wordmax)

    Ok, thanks. p.s. sorry I thought I put inline code w/ no links on the example of output for form below the following line in that reply above… see gray box w/ code just below following line…

    “You can see the resulting html output view source code below…”

    Do me a favor and remove any active links ../wptest/… in that code sorry I copied pasted did not realize. I would, but it’s been too long since posted so can no longer edit. Thank you.

    Plugin Support Michael Travan

    (@michael-travan)

    Hello @wordmax,

    I think I’ve found the issue here. Take a look at the first example of the shortcode you’ve sent me:

    [newsletter_form lists_field_layout="dropdown" lists_field_empty_label="select one..." lists_field_label="pick a topic!” /]

    The last double quotes (after topic) are not double quotes but inverted commas : ) Took me a while to notice this…

    Michael

    Thread Starter wordmax

    (@wordmax)

    Oh…yeah. Woops. I guess the FAQ support page example on the site should probably be corrected.. Thanks for spotting it. I’ve notice this wrong type of quote issue come up randomly in other code related stuff in the past. How to those wrong style of quotes sometimes end up there? Any idea?

    https://www.thenewsletterplugin.com/documentation/subscription/subscription-form-shortcodes/

    This may be the answer regarding two different styles of quotes… not sure:

    https://stackoverflow.com/questions/19272067/double-quotes-shown-as-some-strange-characters-php-html

    • This reply was modified 3 months, 2 weeks ago by wordmax.
    • This reply was modified 3 months, 2 weeks ago by wordmax.
    Thread Starter wordmax

    (@wordmax)

    It works great with the correct quote type.

    Plugin Support Michael Travan

    (@michael-travan)

    Hello @wordmax,

    glad it works now. Yes, probably the link you’ve posted explains why that happens sometimes. Not sure 100% though.

    Thanks for the feedback,
    Michael

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