Support » Plugin: WordPress Contact Forms by Cimatti » don't understand Select option

  • Resolved TheWickedWoman



    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:

    Bug Report
    Report a User
    Suggest a Feature
    Suggest a Topic

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

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author 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;
    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 ‘don't understand Select option’ is closed to new replies.