• Resolved thebuilder

    (@cway)


    Has anyone had any luck using radio buttons or a drop-down menu for subscribers to select a list to subscribe to? I created a form, drug the List Selection input onto my form, saved it. Viewed the page, then viewed the source. Copied the List Selection code and pasted it to an editor, changed ‘checkbox’ to ‘radio’, copied that code into an HTML field and tested it. It keeps subscribing me to both my lists, even though I only selected one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor MailPoet

    (@mailpoet)

    Hi there @cway,

    You’ll want to custom code a form for this rather than modifying an out the box form, the selection behind what you make is still most likely selecting the wrong element.

    Can you send us a link to the page, please?

    Thanks!

    Hi, MailPoet.

    I created a new form and added a radio button field, viewed the source, copied that, pasted it into an editor and worked from there.

    https://villagegreenpool.com/subscribe-test/

    Thank you for your help. Here’s my latest form code:

    <p class="mailpoet_paragraph">
    <label class="mailpoet_radio_label">Where do you live?<span class="mailpoet_required">*</span></label>
    <label class="mailpoet_radio_label">
    
    <input
    type="radio"
    class="mailpoet_radio"
    name="data[form_field_YjJkNmZkMjBlMWVjX3NlZ21lbnRz][]"
    value="5"
    data-parsley-required="true"
    data-parsley-group="segments"
    data-parsley-errors-container="..mailpoet_error_segments"
    data-parsley-required-message="Please select a list" />
    
    Inside Village West or Lexington Green neighborhood
    </label>
    
    <label class="mailpoet_radio_label">
    
    <input
    type="radio"
    class="mailpoet_radio"
    name="data[form_field_YjJkNmZkMjBlMWVjX3NlZ21lbnRz][]"
    value="6"
    data-parsley-required="true"
    data-parsley-group="segments"
    data-parsley-errors-container="..mailpoet_error_segments"
    data-parsley-required-message="Please select a list" />
    
    Outside Village West or Lexington Green neighborhood
    </label>
    <span class="mailpoet_error_2"></span>
    </p>

    MailPoet? Any thoughts?

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