Try

form = SQLFORM.factory(
        Field('always_show', default='123', readable=True, writable=True,
_readonly=True),
        Field('writable_if_intended', default='456', readable=True,
writable=True),
    readonly=False,
    )

Regards Martin

Am Do., 4. Okt. 2018 um 19:18 Uhr schrieb 'Awe' via web2py-users <
[email protected]>:

> in 2.16.1 this was fine:
> form = SQLFORM.factory(
>     Field('always_show', default='123', readable=True, writable=False),
>     Field('writable_if_intended', default='456', readable=True,
> writable=True),
>     readonly=False,
>     )
> Both fields were shown, first field as textonly, and second one as
> edit/input field
>
> In 2.17.1
> print form.fields
> ->['id', 'writable_if_intended']
> The first field does not appear, so all my forms a broken for the moment
> and I do not know how to
> create a form with mixed intentions for the fields (readable only / and
> writable fields)
>
> many thanks for your help,
> Andreas
>
> --
> 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.
>

-- 
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.

Reply via email to