• Resolved janothemes

    (@janothemes)


    Hi,
    As mentioned in your documentation, We should be able to use pipes in Select Dropdown.
    https://contactform7.com/selectable-recipient-with-pipes/
    But it is not working;

    I made the drop down like this

    [select* Land "Deutschland|DE" "?sterreich|AT" "Schweiz|CH"]

    So the country name should be visible in drop down, and the short form should be used in option’s value.

    But the output is like this

    <select name="Land" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required" aria-required="true" aria-invalid="false">
    <option value="Deutschland">Deutschland</option>
    <option value="?sterreich">?sterreich</option>
    <option value="Schweiz">Schweiz</option>
    </select>

    Can you please help to get result like this :

    <select name="Land" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required" aria-required="true" aria-invalid="false">
    <option value="DE">Deutschland</option>
    <option value="AT">?sterreich</option>
    <option value="CH">Schweiz</option>
    </select>

    Thanks in advance

    • This topic was modified 4 years, 3 months ago by janothemes.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    So the country name should be visible in drop down, and the short form should be used in option’s value.

    No, pipes don’t work that way.

    But the output is like this

    <select name="Land" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required" aria-required="true" aria-invalid="false">
    <option value="Deutschland">Deutschland</option>
    <option value="?sterreich">?sterreich</option>
    <option value="Schweiz">Schweiz</option>
    </select>

    This is the correct output.

    Thread Starter janothemes

    (@janothemes)

    Hi,

    Then can you explain this documentation on your website:
    https://contactform7.com/selectable-recipient-with-pipes/

    It says that you can use pipes like this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pipes not working in drop down select’ is closed to new replies.