0

Is it possible to have a dropdown on Contact Form 7 with a dropdown list of First names only, but for the data to send the first and last name? For example, the dropdown says, "John", but the data sent is "John Smith"? Thank you

1
  • This is a question for the plugin's support team. Third-party plugin support is off topic here.
    – Pat J
    Mar 14, 2023 at 22:58

1 Answer 1

1

Yes, it is possible and you can see an example here on the Contact Form 7 website.

For example:

[select your-field "Label 1|value1" "Label 2|value2" "Label 3|value3"]

The actual value is hidden in the front-end form (label and value appear the same), however in the "Mail" tab of your form admin, you can send the actual value using the [_raw_{field name}], so in the case of my example [your-field] would return Label 1, Label 2 etc and [_raw_your-field] would return value1, value2 etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.