WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Contact Forms by Cimatti
[resolved] don't understand Select option (3 posts)

  1. TheWickedWoman
    Member
    Posted 5 months ago #

    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/

  2. cimatti
    Member
    Plugin Author

    Posted 4 months ago #

    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;
    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

  3. TheWickedWoman
    Member
    Posted 4 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic