WordPress.org

Support

value in a list

  • Hello,

    How can we impose a value in a list

    <select name=”liste”>
    <option value=”1″>Choix az az a 1
    <option value=”2″>Choix az az a 2
    <option value=”3″>Choix zaz a 3
    </select>

    Thank you in advance

    Hervé
    PS: Sorry for error handling.
    I do not know what forum

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Challis

    @mikechallis

    I am not sure I understand your question.
    Here is an example of a select:
    Color:,Red;Green;Blue
    To make “Green” the default selection: set “Default option” 2.
    The “Default option” setting can be used for for checkbox, radio, or select field types.

    Here is the help page:

    How to add extra fields

    Thank you for your quick response.
    I do not want to assign a default value.
    I want to store a numerical value (1,2,3, …) rather than the label (which may change one day)

    Plugin Author Mike Challis

    @mikechallis

    Right now it cannot do that. Maybe in a future update I can add a feature for it. I am not sure if or when.

    Mike

    Hello,

    Ok thank you again for your support

    a+

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘value in a list’ is closed to new replies.
Skip to toolbar