Title: Select field with different variable
Last modified: January 19, 2021

---

# Select field with different variable

 *  Resolved [chalkie1983uk](https://wordpress.org/support/users/chalkie1983uk/)
 * (@chalkie1983uk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/select-field-with-different-variable/)
 * Hi there,
 * I am creating a select field for a bunch of custom sports match data.
 * What i would like is the drop down to show the HomeTeam vs AwayTeam but when 
   selected the actual data stored is a numeric number based on the variable set
   by my match database.
 * Is it possible with the select field to set a the field to show one thing but
   save as another?
 * Thanks for your help.
 * Adam

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

 *  Thread Starter [chalkie1983uk](https://wordpress.org/support/users/chalkie1983uk/)
 * (@chalkie1983uk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/select-field-with-different-variable/#post-13929405)
 * I have been playing with it and I seem to have hit a snag, I am unable to do 
   a foreach within the metabox field section, so it looks like I am back to the
   drawing board on this one.
 *  Plugin Support [longnguyen](https://wordpress.org/support/users/longnguyen/)
 * (@longnguyen)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/select-field-with-different-variable/#post-13933853)
 * Hi,
 * > Is it possible with the select field to set a the field to show one thing but
   > save as another?
 * The setting `options` of the field [select](https://docs.metabox.io/fields/select/)
   supports array of `'value' => 'Label'` pairs. They’re used to display choices`
   Label`. `value` is saved in the database as field value.
 * See more on the documentation [https://docs.metabox.io/fields/select/#settings](https://docs.metabox.io/fields/select/#settings).
    -  This reply was modified 5 years, 4 months ago by [longnguyen](https://wordpress.org/support/users/longnguyen/).
    -  This reply was modified 5 years, 4 months ago by [longnguyen](https://wordpress.org/support/users/longnguyen/).

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

The topic ‘Select field with different variable’ is closed to new replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [longnguyen](https://wordpress.org/support/users/longnguyen/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/select-field-with-different-variable/#post-13933853)
 * Status: resolved