Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #942380

    How to add different option in select element within contact form? something like <option value=”1″>Dog</option> <option value=”2″>Cat</option>

    #942424

    Hey heroazad,

    Please refer to this: https://www.w3schools.com/tags/tag_select.asp

    Best regards,
    Rikard

    #942435

    Sorry but this is your theme contact form template, here saying that
    Form Element Options
    Enter any number of options that the visitor can choose from. Separate these Options with a comma.
    Example: Option 1, Option 2, Option 3

    But If I put like this, it will be like this <option value=”dog”>Dog</option><option value=”cat”>Cat</option>
    But I need something like <option value=”1″>Dog</option> <option value=”2″>Cat</option>

    #942940

    Hi,

    Thank you for the update. Use this pattern instead.

    Dog|1, Cat|2, 3|Bird
    

    Second value after the vertical bar is the option value.

    Best regards,
    Ismael

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