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

  1. TheWickedWoman
    Posted 1 year ago #


    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


  2. cimatti
    Plugin Author

    Posted 1 year 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;
    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
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Contact Forms by Cimatti
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic