• Resolved Chiara Aiola

    (@aiolawp)


    Hi,
    I tried to make a dropdown list with couples of label|value fields

    [select pr-support-request-os "Windows|WINDOWS" "Linux|LINUX" "Android|ANDROID" "MacOS|MACOS" "Other|OTHER"]

    but in my select I have option with label in both value and text

    
    <select name="pr-support-request-os" class="wpcf7-form-control wpcf7-select mobile-device" aria-invalid="false" tabindex="-98">
    <option value="Windows">Windows</option>
    <option value="Linux">Linux</option>
    <option value="Android">Android</option>
    <option value="MacOS">MacOS</option>
    <option value="Other">Other</option>
    </select>
    

    Looking inside the code, It seems that the same values are used both for values and labels, or I’m doing something wrong?

    Thank you,
    Chiara

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Use Pipe to set value and label in a dropdown list’ is closed to new replies.