• Resolved chalkie1983uk

    (@chalkie1983uk)


    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

    (@chalkie1983uk)

    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

    (@longnguyen)

    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 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.

    • This reply was modified 4 years, 1 month ago by longnguyen.
    • This reply was modified 4 years, 1 month ago by longnguyen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Select field with different variable’ is closed to new replies.