[web2py] Re: How to edit boolean fields via one dropdown widget

2021-11-16 Thread Clemens
If you are using SQLFORM (form = SQLFORM(...)), then you can add extra fields via form[0].insert(...). The extra fields can be addressed by their names via form.vars. when you validate the form via form.validate(). Is this the right direction? If yes and you want more information how to do this

[web2py] Re: How to edit boolean fields via one dropdown widget

2021-11-15 Thread Horst Horst
Thanks for your reply, Jim. Unfortunately the table is actually auth_user, the boolean fields are extensions which I defined via auth.settings.extra_fields[auth.settings.table_user_name] = [...] Unless there's a very simple way to replace or customize the builtin user profile related funtions,

[web2py] Re: How to edit boolean fields via one dropdown widget

2021-11-15 Thread Jim S
I'd do that with a custom form (SQLFORM.factory). http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-factory -Jim On Sunday, November 14, 2021 at 5:29:14 AM UTC-6 spamf...@gmail.com wrote: > I have a table with two boolean fields. All four combinations used to be > mea