Title: Getting &#8220;0&#8221; value into mail
Last modified: August 29, 2017

---

# Getting “0” value into mail

 *  Resolved [gleenk](https://wordpress.org/support/users/gleenk/)
 * (@gleenk)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/getting-0-value-into-mail/)
 * Hello, i’m having problems getting value via email.
 * This is the CF7 shortcode:
    `[dynamicselect* dynamicselect-200 "fi-dyn-esecuzione"]`
 * This is the field into mail tab of CF7:
    `Esecuzione: [dynamicselect-200]`
 * This is the function:
 *     ```
       function cf7_dynamic_select_do_example1($choices, $args=array()) {
           $choices = array_flip(get_field('prod_esecuzione'));
           return $choices;
       } 
       add_filter('fi-dyn-esecuzione', 'cf7_dynamic_select_do_example1', 10, 2);
       ```
   
 * I see correct values into form dropdown but unfortunately, this is the results
   in email:
    Esecuzione: 0 (instead of selected value)
 * What’s wrong?
    -  This topic was modified 8 years, 8 months ago by [gleenk](https://wordpress.org/support/users/gleenk/).
    -  This topic was modified 8 years, 8 months ago by [gleenk](https://wordpress.org/support/users/gleenk/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [gleenk](https://wordpress.org/support/users/gleenk/)
 * (@gleenk)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/getting-0-value-into-mail/#post-9453197)
 * I solved using different approach as explained here: [https://andidittrich.de/2016/12/contact-form-7-add-custom-data-providers-to-select-elementstags.html](https://andidittrich.de/2016/12/contact-form-7-add-custom-data-providers-to-select-elementstags.html)
 *  [carlosromanxyz](https://wordpress.org/support/users/carlosromanxyz/)
 * (@carlosromanxyz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/getting-0-value-into-mail/#post-9638379)
 * [@gleenk](https://wordpress.org/support/users/gleenk/)
 * Can you explain how to solve it?
 * Same issue here, apparently the plugin pass values instead text
 * This is the problem:
 * Choice 1 = 0 (Your selection)
    Choice 2 = 1
    -  This reply was modified 8 years, 6 months ago by [carlosromanxyz](https://wordpress.org/support/users/carlosromanxyz/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Getting “0” value into mail’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-dynamic-select-extension.
   svg)
 * [Dynamic Select for Contact Form 7](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/reviews/)

## Tags

 * [dropdowns](https://wordpress.org/support/topic-tag/dropdowns/)
 * [values](https://wordpress.org/support/topic-tag/values/)

 * 2 replies
 * 2 participants
 * Last reply from: [carlosromanxyz](https://wordpress.org/support/users/carlosromanxyz/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/getting-0-value-into-mail/#post-9638379)
 * Status: resolved