Documentation & FAQ
ODude Index
Install Index
Tips while createing form fields
ODude Index
Install Index
Tips while createing form fields
Tips while createing form fields
- Author:
- Administrator
- Date added:
- Tuesday, 09 November 2010
- Last revised:
- never
Answer
- Form Name should same as Name Tag in input filed.
- Tips: If you wish to have advance form with validation create a template for submit page. [default.submit.tpl.php]
- Don't use <form> tag
- To create text field: <input type=text name=name_of_filed>
- To create select field: <select size=1 name=name_of_filed><option>Option 1</option><option>Option 2</option></select>
- Input type Radio, Checkbox, Submit and file is currently not supported.
If you have to use checkbox and radio button any how than leave the 'HTML form code' empty. Write html code into template default.submit.tpl.php - Form validation elements
required
validate-username
validate-password
validate-numeric
validate-email
Eg. <input type=text name=email class= required validate-email>



Add comment