Select List Options Value – Not setting value
-
Re: https://contactform7.com/selectable-recipient-with-pipes/
Contact Form 7: Version 4.7I’m trying to set my own values for a select list, but the pipe method does not work. Putting in a pipe doesn’t seem to do anything. I have even tried altering the Listo plugin’s code to test it out with that and it does the same thing. It puts the value of the option to the same thing, not the value you set it to.
Ex.
[select field_name “test|2”]
This renders:
<select name="field_name" class="wpcf7-form-control wpcf7-select" aria-invalid="false"> <option value="test">test</option> </select>When it should render:
<select name="field_name" class="wpcf7-form-control wpcf7-select" aria-invalid="false"> <option value="2">test</option> </select>
The topic ‘Select List Options Value – Not setting value’ is closed to new replies.