chrismiles / EZForm

iOS form handling and validation library.
MIT License
284 stars 64 forks source link

EZFormRadioField, selected choice key #78

Closed amcastror closed 9 years ago

amcastror commented 9 years ago

Support for getting the selected choice key. Added example on scroll view form

amcastror commented 9 years ago

Hi, has anyone seen this? Thanks!

jessedc commented 9 years ago

Hey @amcastror thanks for the PR. Can you explain in a little more detail what the case is for adding this change? Cheers!

amcastror commented 9 years ago

Hi @jessedc,

I'm using a radio field for displaying an array of objects. Those objects have an id (NSString) and a name (NSString), and the radio field is configured with keys using the id's and values using the names.

The idea is that when the user selects an option, I can get the id to easily access the associated object.

If there's another way of doing this I'm open to suggestion.

Thanks a lot!

El jueves, 21 de mayo de 2015, Jesse Collis notifications@github.com escribió:

Hey @amcastror https://github.com/amcastror thanks for the PR. Can you explain in a little more detail what the case is for adding this change? Cheers!

— Reply to this email directly or view it on GitHub https://github.com/chrismiles/EZForm/pull/78#issuecomment-104448053.

Saludos, Matías Castro Dsarhoya