Hi experts and gurus,
I have a class registration form with a location field. I designed
the location field like the select/input box found in Google Reader at
the top. The user is both able to enter some value at the same time
is also able to select from a list of values. I used CSS to position
the input field on top of the select box (with the drop down arrow
showing).
Anyways, I also have a hidden field with the name location_id. When
user enters something, and selects something from the autocomplete or
just selects something from the drop down, the hidden field value
attribute is populated using javascript.
The location_id is passed to the server for processing. I need to
check if the location_id's corresponding location_name (from the
database) is exactly what the user typed in the text field (because
although there is autocomplete, the user may still delete one or two
characters in the input field).
I too have another field called organizer, that upon submission sends
the hidden field value:
<label for="organizer" id="organizer_id_label">Organizer<em>*</em></
label>
<input type="text" name="organizer" id="organizer" value="$
{c.organizer_init}"/>
<input type="hidden" name="organizer_id" id="organizer_id" value="$
{c.organizer_id_init}" />
This is an autocomplete input field, so upon typing something and then
SELECTING from the list of autocompleted values, the organizer_id
hidden field is populated. How do I validate whether the organizer_id
is indeed corresponding to the name of the organizer in the text input
field (supposing the user deleted 1 character in the input field)?
FancyValidator for sure right? But how do I retrieve values from both
input fields for comparrison in the DB?
-Mark
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.