• I have a small search form. There is a dropdown to select the state. That works fine. Problem is, I need to be able to pass a numerical value for each state instead of the text name, to the server. Is there any way to assign each state a value in the dropdown box without showing it?

    Example, There is a box to rename the fields. I need one just like that to rename values! So for instance instead of Michigan it becomes 29.

    http://wordpress.org/extend/plugins/si-contact-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not currently a supported feature, but I will take note of it for a possible feature someday

    Thread Starter Michigandigital

    (@michigandigital)

    I may have explained that wrong but I think you get what I meant. The plugin automatically makes the value the same as the label (in the dropdowns). If there was a way to apply a value to each label, then the plugin could be used to carry whatever values needed.

    In our case, the states each need a numerical value on the server side (we combined Yii with WordPress). In order to change it on the server side would be way more work, s we just ended up writing a php form instead.

    Love everything else!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing values of values’ is closed to new replies.