Can't add different text and value to options in a select menu
-
Using CF7 Version 3.9.3
I am trying to display some text in an option in a select menu and have a different value passed when selected. Based on this page https://contactform7.com/selectable-recipient-with-pipes/ I added pipes but am still getting only the initial text before the pipes. Here’s the shortcode for the field I am using:[select* hdyhau "How did you hear about us?|x" "Google|1GOBK" "MSN|1MSBK" "Yahoo|1YHBK" "Email|1EMBK" "Direct Mail/Catalog|1DMBK" "Online Banner Ad|BABK" "Magazine/ Print Ad|1SABK" "Radio|1RDBK" "Referal|1RFBK" "Trade Show| 1TSBK" "TV|1TVBK" "Social Media/Social Network|1SMBK"]
In the wp-contact-form-7.php file WPCF7_USE_PIPE is set to true
if ( ! defined( 'WPCF7_USE_PIPE' ) ) define( 'WPCF7_USE_PIPE', true );
You can see a test page at https://test-cms.infousa.com/form-test/
- The topic ‘Can't add different text and value to options in a select menu’ is closed to new replies.