Title: Custom select value not in field_data_array
Last modified: August 24, 2025

---

# Custom select value not in field_data_array

 *  Resolved [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/)
 * When using a select field with the “Other option” enabled the other value entered
   is not supplied as part of the field_data_array (i.e. 3rd argument to filters
   forminator_custom_form_submit_errors and forminator_custom_form_submit_before_set_fields).
 * The field value returned in this case is always “custom_value” regardless of 
   what other value was actually entered.
 * It looks like there is a (prepared) field custom-select-1 which holds the “other”
   value entered for “select-1”, but that is not in the field_data_array.

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

 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18611790)
 * Should _Forminator\_CForm\_Front\_Action::maybe\_handle\_custom\_option_ be adding
   an entry for “custom-select-1” to field_data_array which could then be read to
   get the actual value?
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18612544)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * Hope you are doing well today.
 * I asked our developers to review your query, we will update you once we have 
   further feedback.
 * Best Regards
    Amin
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18612858)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * We got further feedback from our developers.
 * This indicates that the value entered there is placeholder, but other options
   have values:
 * > [View post on imgur.com](https://imgur.com/a/MWBLLga)
 * If you want to change that behavior, you need to adjust the code and unfortunately,
   since custom coding is out scope of our support, you’ll need to hire a developer
   to provide the required custom code for you. WordPress provides a jobs directory
   here [https://jobs.wordpress.net/](https://jobs.wordpress.net/), if you need 
   further advice about it, feel free to email `wpsupport@incsub.com`.
 * Subject: ATTN: WPMU DEV support – wp.org”
 * Kind Regards,
    Amin
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18613019)
 * I am an experienced developer.
 * When you have “other option” enabled for a select field you are right the field_data_array
   returns “custom_value” to tell you that the “Other” option has been selected.
   What it does **not** do is tell you what the value typed for that field was. 
   Nor is that information included anywhere else in the field_data_array – which
   is surely an ommission. As result that information is unavailable in a number
   of crucial filters (e.g. forminator_custom_form_submit_before_set_fields) I wish
   to use to customize the form behaviour.
 * If I modify _Forminator\_CForm\_Front\_Action::maybe\_handle\_custom\_option_
   to remove the outer “if ( self::$is_draft ) {” it works as I would expect, including
   an additional entry in the field_data_array.
 *     ```wp-block-code
       {    "name": "custom-select-1",    "value": "The text I entered for the other option"}
       ```
   
 * Can that change please be incorporated in the code base or how else am I supposed
   to get the “other” value that was entered when processing the data in filter 
   _forminator\_custom\_form\_submit\_before\_set\_fields_.
 *  Plugin Support [Williams – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport3/)
 * (@wpmudevsupport3)
 * [9 months ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18614847)
 * Hi [@peter8nss](https://wordpress.org/support/users/peter8nss/) ,
 * I hope you’re doing well, and thanks for sharing this further info.
 * I’ve forwarded the info to the Forminator developers and while I can’t promise
   that this is going to be implemented as it requires some discussion as well as
   development + QA tests, you can be sure that they will check your request.
 * Please let us know if you have additional questions.
    Best Regards, Williams 
   Valerio
 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [8 months, 4 weeks ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18624203)
 * [@peter8nss](https://wordpress.org/support/users/peter8nss/) Please do not create
   duplicate topics again. It makes it harder for volunteers to support you. I have
   removed your new topic.
 * Please continue here.
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18631103)
 * I’m sorry about the duplicate post. However, I think it is important to note 
   that I have now determined that the problem is wider than first identified and
   is not just confined to those writing code using apply_filters. Specifically,
   if you have select field with the “Other option” enabled, the text entered by
   a user for that other value is NOT stored in the submission at all.
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18631298)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * If you could share an example, we can better understand your point. I will then
   provide the additional information to our forminator development team for further
   investigation.
 * Best Regards
    Amin
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18631330)
 * I’ve done some further testing. What gets stored for the submission depends on
   the setting of “Default Stored Value”. If you have “Option values” selected, 
   you get “custom_option” stored when an “other” value is entered. If you have “
   Option labels” selected, you do get the text entered for the other value stored
   for the submission. So the problem is limited to the fact that the entered value
   is not included in the field_data_array passed to the filters. [The original 
   issue raised]
 * A (temporary) workaround for someone using forminator_custom_form_submit_before_set_fields
   is to access static Forminator_CForm_Front_Action::$prepared_data which does 
   have the value for select-n available as custom-select-n.
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18633790)
 * Hi [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * We have informed our Forminator Team with all the details, and we have made an
   improvement task which will be implemented in future updates.
 * Kind Regards.
   Kris

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

The topic ‘Custom select value not in field_data_array’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * Last activity: [8 months, 3 weeks ago](https://wordpress.org/support/topic/custom-select-value-not-in-field_data_array/#post-18633790)
 * Status: resolved