<sn:editor>
Creates a form and a fieldset to simplify entering data. Children of this tag fill in a row of the fieldset and consist of a label and a form element. Free text in this element goes at the top of the form and acts as the description and instructions.
Attributes
- string < required > The url to which the form's data is posted. Must be a relative url .
- integer < optional > The width of the fieldset in pixels Must be an int .
- integer < optional > The height of the fieldset in pixels Must be an int .
- integer < optional > The width of the labels in the form Must be an int .
- boolean < optional > A flag to switch the enctype of the form to multipart Must be a boolean .
- string < optional > A javascript function to validate the form inputs Can be any string .
- string < optional > The id to be applied to the form Can be any string .
- string < optional > The HTTP method to use when submitting this form Must be one of : GET POST
Valid Contexts
- : The area where your app is displayed alone
- : The Bebo profile page
- : On a notification page (after the user has clicked on a link in the email)
- : On the invitations page
Code
<sn:editor action="foo.php?forms=shouldnt&have=query&strings" labelwidth="100">
Please enter data for my awesome app.
<sn:editor-text label="First Name"/>
<sn:editor-date label="What day is it?"/>
<sn:editor-time label="what time was it at 4:00?"/>
<sn:editor-divider/>
<sn:editor-month label="What's your birth month?" />
<sn:editor-textarea label="tell us a bit about yourself"/>
<sn:editor-buttonset>
<sn:editor-button value="Tell Us"/>
<sn:editor-cancel />
</sn:editor-buttonset>
This goes at the top too.
</sn:editor> Play with this code in the sandbox