Hi All,
I was wondering if this is an possibility. Assume I have a form that
includes two fields that take text input. Is there a way to implement a
mechanism where after I've typed whatever I want in the first field, and
the same string will appear in the second field or, have the text appended
to whatever is in the second field.
As an example, in controller I have:
form=SQLFORM.factory( Field('f1'),
Field('f2', default='somevalue'))
Ideally, once I type in text in f1, f2 will have the text I entered
appended to 'somevalue'. I know I probably need to use
form.element(_name='f1')['_onchange']=' ' but I am not really sure how to
retrieve values from f1 or the correct JS syntax.
If anyone has any suggestions I'd really appreciate it. Thanks!
--
---
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.