jFormer DocumentationBasic Fields

Hidden

JFormComponentHidden(String id, String value[, Array optionArray])

The Hidden field type is used by developers to store data necessary to process the form which is not visible to the user.

Usage

Constructor

    new JFormComponentHidden(String id, String value[, Array optionArray])

Sample Usage

Create a hidden component:

    $hidden = new JFormComponentHidden('id', 'value');
    

Value Returned

String

CSS Class

.jFormComponentHidden

Component Options

These options are common to all components.

null

description

HTML | a description for the component, shows underneath the component inside a DIV with the class jFormComponenpescription.

null

instanceOptions

Array, [max(int), addButtonText(string), removeButtonText(text)] | see instanceOptions page for more information.

null

dependencyOptions

Array, [dependentOn(string), display(string), jsFunction(Javascript)[, animationOptions(array)]] | see dependencyOptions page for more information.

null

triggerFunction

Javascript | a javascript function that runs upon component change.

null

tip

HTML | a tooltip that displays whenever the component has focus. Gives any extra help or explanation a form user might need.

null

validationOptions

Array | an of validations specific to the component, see the specific component for its validations.

false

showErrorTipOnce

Boolean | this option makes the error tip only show up on the first focus on the component if it does not pass validation.

false

enterSubmits

Boolean | if true pressing enter while this component has focus submits the form, or advances to the next page.

null

style

CSS | set the style attribute for the component wrapper div.

null

initialValue

String | preset the value of the component upon form loading.

Next Page: Multiple Choice

This page was last edited on April 11, 2011 at 11:50am.

0 comments (add a comment)