Button element

Function : Displays a button in the form, the button can be customized to have different functions

Parameters

Label The label of this element
CSS Class CSS class assigned to this element
Style using CSS only Defines whether or not JForms should append inline CSS attributes to the element, Set to “YES” if you want to disable inline CSS attributes
onClick Script Javascript code to run upon clicking this button (Available only when Type = “Button”)
Type The function this buttons performs (Submit: Submits the form), (Reset: Resets the form), (Button: Executes Javascript specified in “onClick” parameter)

At least one button of the type “Submit” has to be present in the form to be saved

Examples

Example 1

Creating a button that displays an alert message

  • Set “Type” = “Button”
  • Set “onClick Script” = “alert('This is a message');”
 
0.7/elements/button.txt · Last modified: 2009/09/06 18:47 by dr_drsh
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki