There is nothing special about form button as one of the html constructors. 
They all support standard HTML helpers:

http://www.web2py.com/books/default/chapter/29/05/the-views#HTML-helpers

`_class` generates the class tag

You can read more about INPUT here: 
http://www.web2py.com/books/default/chapter/29/05/the-views#INPUT


On Saturday, February 17, 2018 at 7:57:08 AM UTC-8, F.C. wrote:
>
> How do i change the class of a custom and/or standard form button. Is 
> there an example you can reference? Again, thank you for the assistance 
>
> On Sat, Feb 17, 2018 at 09:41 Yi Liu <[email protected] <javascript:>> 
> wrote:
>
>> They are already in default bootstrap style. 
>>
>> _class='btn btn-primary'
>>
>> To customize, you can add your own css file, or edit the form constructor 
>> to add a new class, or id , or change to different bootstrap class to 
>> specific form button. For example:
>>
>> _class='btn btn-danger'
>>
>> Your browser's web developer tool will also be handy for such work.
>>
>>
>> On Saturday, February 17, 2018 at 7:09:44 AM UTC-8, F.C. wrote:
>>>
>>> Quick question. Can someone point me to any guidance on how to change 
>>> the style of standard form buttons or custom buttons that i added to a 
>>> form. I want to format them using bootstrap styles. Any help will be 
>>> appreciated. Also Web2py rocks!!!
>>
>> -- 
>> 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 a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/IEWkmxjLqcA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> 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