Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi smdami can you please explain further what you mean or trying to achieve.

    Thank you

    Thread Starter smdami

    (@smdami)

    I’m simply trying to set option values independent of text. The select options set the text but the values seem to be assigned automatically. In my example above I would expect to set the select options as follows:

    red:Red
    blue:Blue
    green:Green

    Can yo share your form URL.

    Thank you

    Thread Starter smdami

    (@smdami)

    Unfortunately I can’t. The site is in staging for a publicly traded company.

    Here is what the field source looks like:

    <select name=”how-did-you-hear-about-us[]” id=”fscf_field1_20″ class=”fscf-input-select”>
    <option value=”1″>Article / Press Release</option>
    <option value=”2″>Blog</option>
    <option value=”3″>Conference</option>
    <option value=”4″>Google +</option>
    <option value=”5″>LinkedIn</option>
    <option value=”6″>Referral</option>
    <option value=”7″>Search Engine</option>
    <option value=”8″>Twitter</option>
    <option value=”9″>YouTube</option>
    <option value=”10″>Other</option>
    </select>

    I think I can see what you are trying to do. Have you thought of doing it like this.

    Above the select fields type in the following via HTML above the field.

    1 = Article / Press Release
    2 = Blog
    3 = Conference

    Then you add select

    Option 1
    Option 2
    Option 3

    etc

    Thread Starter smdami

    (@smdami)

    I’m not sure I understand. The select field type has a single input where you enter your options. Is there a way to enter value and text pairs into the box as in my 3rd post? Consider when these entries are stored in a database and/or emailed to the client…the values 1..10 have no meaning to them.

    Thread Starter smdami

    (@smdami)

    Just as a follow up from my last point, I use the ACF plugin where it states the following when creating a select field:

    Enter each choice on a new line.
    For more control, you may specify both a value and label like this:

    red : Red
    blue : Blue

    Hi what is the ACF plugin? Never heard of it.

    In regards to the following comment.

    The select field type has a single input where you enter your options. Is there a way to enter value and text pairs into the box as in my 3rd post?

    You could use my example above but this time type the following in the field.

    1 Article-Press Release
    2 Blog
    3 Conference

    Regards

    Thread Starter smdami

    (@smdami)

    So is the answer to my question “Is there a way to enter value and text pairs?” No?

    As far as I know, no.

    But I have not tested this area so I am not 100% sure. @mike Challis the developer would give you the correct answer.

    Regards

    for select, radio, checbox-miltiple, select-multiple field types: If you add options as a key==value set (use == to separate) the value will show on the form and the key will show in the email.

    Thread Starter smdami

    (@smdami)

    Perfect Mike! That’s what I was looking for. I appreciate your time and assistance. I love your plugin and have made a donation for your efforts. If you have a moment and have a chance to look at this thread https://www.ads-software.com/support/topic/field-names-changed-to-lower-case?replies=4#post-6318054 I would really appreciate it.

    Hi @smdami is your issue resolved? If it is well done. Can you mark this support thread as resolved.

    Thank you

    Thread Starter smdami

    (@smdami)

    Well done, thank you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Set select option values independent of text’ is closed to new replies.