Hi,
i have a question. I have a IS_IN_DB validator.
fields.append(Field("event_class_id", "reference event_class",
required=True,
requires=IS_IN_DB(db, 'event_class.id', '%(name)s',zero
=T("-- Odaberite --")),
label=LABEL("Vrsta događaja", _for=
"event_value_event_class_id")))
In my event class i have a structure like:
db.define_table('event_class',
Field('name', 'string',
required=True,
requires=IS_NOT_EMPTY(),
label=LABEL(T("Naziv"), _for="event_class_name")),
Field('repeated', 'boolean',
label=LABEL(T("Ponavljanje"), _for="event_repeated")),
)
Repeated field is a field that tells me weather do display one field on a
form. I want to have HTML like this.
<select>
<option value="1">Name</option>
<option value="2">Name 2</option>
<option value="3">Name 3</option>
<option value="4" class="repeated">Name 4</option>
<option value="5">Name 5</option>
</select>
so when users selects a value i can check if i need to display repeated
field based on the class
Is this possible somehow?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.