On Apr 22, 10:05 am, annet <jmverm...@xs4all.nl> wrote:
> I wonder whether it is possible in SQLFORM to mark the fields that are
> required with an asterisk. Now the visitor finds out whether a field
> is allowed to be empty after validation, which is a bit awkward.

You can use CSS to highlight the field or the label too.
>
> Furthermore, I wonder whether it is possible to add a reset and a
> cancel button to my forms, and if so, how do I code the buttons?

Strictly speaking only reset is valid HTML.
But you can create any button you want.
How? it depends on what do you want to do with it.
In your case, what is "Cancel" going to do?.

To add a reset button:
form[0].append(TR(TD(),TD(INPUT(_type="reset",_value="Reset form")))

form[0] is the table that defines the layout in the standard SQLFORM.

>
> Best regards,
>
> Annet.

Denes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to