Form Values are not actual values
| Project: | Webform |
| Version: | 5.x-2.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have a form and I'm trying to add additional validation to it. The issue i'm having is that two of the fields i'm trying to validate are select lists. The are both contained in a fieldset.
The first one contains a list of dates, the options look like:
6/24/08
6/25/08
6/26/08
The second one contains a list of times, the options look like:
9:00 a.m. (Monday thru Friday visits)
10:00 a.m. (Monday thru Friday visits)
11:00 a.m. (Monday thru Friday visits)
I am accessing the fields in the additional validation area using:
$form_values['submitted_tree']['campus_visit_information']['desired_visit_date']
$form_values['submitted_tree']['campus_visit_information']['desired_visit_time']
However, when it pulls the value for the date, it is 62408 rather than 6/24/08 and when it pulls the value for time it is 1100_am_monday_thru_friday_visits rather than 11:00 a.m. (Monday thru Friday visits). I really need the actual value, I do not have key-value pairs setup for these options, so it doesn't make sense that it would give me some generated key. Any ideas on why this is happening and how to get around it?
Thanks,
Shane

#1
This behavior was intentional, but only because of very, very old legacy code that had solved problems in Drupal 4.6. Now that it's safe to take all that out, I've fixed this issue in #264709: 'select' with non-latin values
#2
Automatically closed -- issue fixed for two weeks with no activity.