Any example you can provide. lol. I have this chat application, I have an
file upload, that I use a div element to put below the form inside a table
(attached) which is not included in the same table (separate table for the
text and the file upload). I am hoping, if I can do something like a
prepended text included in the form, may be I can then use the file upload
attached to the form like shown in the picture (attached).
Do I need to create a separate table for appended or prepended text?
On Thursday, April 14, 2016 at 8:56:28 PM UTC-4, Stuart Rolinson wrote:
>
> Ron,
>
> I am pretty sure the only way to do this would be a custom for, so yes
> {{=form.custom.begin}}.
>
> {{=form.custom.begin}}
> <fieldset>
>
> <!-- Form Name -->
> <legend>Form Name</legend>
>
> <!-- Appended Input-->
> <div class="form-group">
> <label class="col-md-4 control-label" for="appendedtext">Appended
> Text</label>
> <div class="col-md-4">
> <div class="input-group">
> {{=form.custom.widget.appendedtext}}
> <span class="input-group-addon">append</span>
> </div>
> <p class="help-block">help</p>
> </div>
> </div>
> </fieldset>
> {{=form.custom.end}}
>
> Hope that helps.
> Stuart.
>
> On Thursday, April 14, 2016 at 7:39:56 AM UTC-7, Ron Chatterjee wrote:
>>
>> db.define_table("search_table",
>> Field('search_string', 'string'))
>>
>>
>>
>> form = SQLFORM(db.search_table);
>>
>>
>> view {{=form}}
>>
>>
>> If I have to use validators and security of SQLFORM, how do I add
>> appended text to this form?I am guessing {{=form.custom.begin}}?
>>
>>
>>
--
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.