I have a form that was created by CRUD, I also update this form by CRUD.
In another thread I was told by Anthony about a "field widget" controlling
what is seen (he stated this is for: "read-only forms, SQLTABLE,
SQLFORM.grid, and when calling rows.render()") however per the book it says
that to set that I must use the "Widget=XXX" option, which I have not. The
conditions he stated do not seem to apply so what he said actually confused
me further because I know what it is not, none of those.
When I set this one thing for the form:
formcontrol.category.writable = False
It shows the category name as expected just not in a dropdown or editable
input field so as to allow the user to change it.
I have the form being called like this:
form=crud.update(db.animals,animals,next=url('currentanimals'),onvalidation=my_form_processing)
I just want the user to be able to see the category name they are choosing
because I do not think it possible for them to know the ID.
Is this unusual or should I provide a list of names that users can match up
to the IDs?
I do not recall other websites being that way but, I could be wrong.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.