Component index
Section index | Component form |
Search |
Type | Function |
Summary | Control the an HTML form |
Description | This controls all the steps needed to handle a form, including the initial layout, validation and processing. |
![]() ![]() | void bottom () | |
![]() ![]() | void load () | |
![]() ![]() | void process () | |
![]() ![]() | void setup (bool first, bool drawing) | |
![]() ![]() | void top () | |
![]() ![]() | bool validate () |
Useful to add extra information outside of the form.
If you need to load information from a database, prior to do the setup of the form, you place your code here.
The functag must now perform the action associated to this form.
You use HTML code but also the field_xxx() helpers to layout the form.
Useful if you need some introduction text before the form is created.
The function returns true or false if the user input is valid or not. It also issues error message using tlmpweb_error().
By default, the submit button is just drawn at the end of the form. Using this function, you can position it as needed.
Like the other button_submit, except you can specify the button label.
This is useful to store information in the form, transmitted back to the application by the browser when the user "accept" the form.
You use field_list, then field_list_item() to define the items and then field_list_end() to end the list
Entries are presented with some text, but the value is another This one associate a description to the item value. Only the description is presented.
A radio button is a exclusive selector. When one button is selected all the other are deselected
You must call this function, then field_textarea_body() several time to set the initial content and then field_textarea_end() to end the definition.
You must call this function, then field_textarea_body() several time to set the initial content and then field_textarea_end() to end the definition.
This function is generally called several time to define the content of the multi-line textarea. This function works like printf.
This function works as well for other FILE handle
This is usually needed for form using either custom buttons or images.
Works like a normal printf, except everything is sent to the form. This is usually used in the top,bottom and setup functag.
You normally use the various field_xxx() helper to define field. You use setfield for other field type (since not all HTML input type have their field_xxxx() helper).