WordPress.org

Support

Support » Plugins and Hacks » [Resolved] don't understand Select option

[Resolved] don't understand Select option

  • Hello:

    First, I feel rather stupid asking this question, but I need the answer.

    I’m trying to make a drop-down list for the Subject field of a Contact form. I have put the options on one line each, but I don’t know whether the list should go in the Default values area or the Allowed values area. Then, there is the question of the format. I don’t know what constitutes the “key” and what constitutes the “label.” I have placed the following in the Allowed values area:

    Advertising
    Bug Report
    Complaint
    Compliment
    Report a User
    Suggest a Feature
    Suggest a Topic
    Other

    Can you please tell me what I’m doing wrong?

    Thank you

    https://wordpress.org/plugins/contact-forms/

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

    @cimatti

    If you have no issues, you did nothing wrong, as you have to put the options in the “Allowed values” area.

    Defining them as key|label pair is not mandatory, but it may be useful in some situations. Key is the value saved/sent to administrators/used in tokens; Label is the text shown to the visitors. If it is not defined, key is the same as the label.

    For example you may set keys as an email address, and labels as the name of the recipient of a message;
    <blockquote>foo@example.com|Foo
    bar@example.com|Bar
    baz@example.com|Baz
    In this way, in the “Messages” tab of the form, in “To” you can insert the {select_field_token} to send the message to the selected name.

    The only possible issue is that keys are unique, so you can’t have the same key more than once

    Thank you, cimatti. I’m sorry it’s taken me so long to see your response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] don't understand Select option’ is closed to new replies.