We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Radio buttons with comments

How Do I?

bsjosten's avatar
bsjosten
100 posts
about 11 years ago
bsjosten's avatar bsjosten

Hi,

When adding new entries via the CP, I need to create radio button fields with descriptive labels, but store simple integers in the database. How can this be done?

For example, I need a field to specify units. I would like two radio buttons with the labels “metric” and “imperial”, but in the database I want to store either 1 or 2 to remember the selection.

Similar for months of the year, etc.

The reason for this is so that I can display the site in different languages, where things like names of months etc are different.

Thanks,

/Bo

       
Boyink!'s avatar
Boyink!
5,011 posts
about 11 years ago
Boyink!'s avatar Boyink!

I think you’d need to create a custom field(s), but there are other ways to skin the multi-lingual cat. I’d recommend the Transcribe add-on.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.