Title: Select with zero value
Last modified: November 4, 2025

---

# Select with zero value

 *  Resolved [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/select-with-zero-value/)
 * “0” values seems not to be recognized and stored as “” (zero length string).
 * If the select is required, selecting av an item with value “0” causes validation
   error.
 * There are many use cases for selecting a 0 value, when wanting to store or display
   them as number or boolean. I suggest allowing “0”, rejecting “” when a value 
   is required. I also suggest only allowing one “” option, preferably only the 
   first option (usually labeled “–Select–“)
 * FYI: I have started using this nice plugin in a project, and store all submissions
   as a (pending) CPT entry with meta, then display them. The data then may persist,
   viewed and edited, even after the submission itself is deleted.

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

 *  Plugin Author [Matthias Kittsteiner](https://wordpress.org/support/users/kittmedia/)
 * (@kittmedia)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/select-with-zero-value/#post-18707049)
 * Hi [@knutsp](https://wordpress.org/support/users/knutsp/),
 * indeed, this should be improved. I’ll work on it to support zero as a field value.
 * Best regards,
   Matthias
 *  Thread Starter [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/select-with-zero-value/#post-18707128)
 * Thank you for your quick response! This is promising.

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

The topic ‘Select with zero value’ is closed to new replies.

 * ![](https://ps.w.org/form-block/assets/icon.svg?rev=2889439)
 * [Form Block](https://wordpress.org/plugins/form-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/form-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/form-block/)
 * [Active Topics](https://wordpress.org/support/plugin/form-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/form-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/form-block/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/select-with-zero-value/#post-18707128)
 * Status: resolved