Thanks, Anthony! now. it's working
One more question I am using plugin_ckeditor so can I get the same
functionality in SQLFORM  using widget=ckeditor.widget instead of widget =
SQLFORM.widgets.list.widget.

sandeep/

On Sun, Jul 29, 2018 at 6:15 PM Anthony <[email protected]> wrote:

> In case 1, the default widget used by web2py is
> SQLFORM.widgets.list.widget. In case 2, you are replacing that with the
> "string" widget, which is intended to work with a "string" field, not a
> "list" field.
>
> Anthony
>
> On Sunday, July 29, 2018 at 8:21:23 AM UTC-4, sandeep patel wrote:
>>
>>
>> Hello All,
>>
>> In my case widget and list: string Field is not working properly.
>>
>> *Case 1 (Without Widget)*
>> In this case, my form work proply with list:string Field
>> # db.py
>> db.define_table('content_ck',
>>     Field('title', length=255),
>>     Field('public_ck', 'boolean', default=True),
>>     Field('text_ck', 'list:string')
>>     )
>> #default.py
>> form = SQLFORM(db.content_ck)
>>
>> *Case 2 (With Widget)*
>> In this case, my form does not append new Field after enter value in
>> text_ck Field even (+ - ) not have in form.
>> # db.py
>> db.define_table('content_ck',
>>     Field('title', length=255),
>>     Field('public_ck', 'boolean', default=True),
>>     Field('text_ck', 'list:string',widget=SQLFORM.widgets.string.widget)
>>     )
>> #default.py
>> form = SQLFORM(db.content_ck)
>>
>> am I doing anything wrong?
>>
>> Best/
>>
>> --
> 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