jFormer Documentation

Basic Fields

Drop-Down, File, Hidden, Multiple Choice, Single Line Text, Text Area

JFormComponentDropDown(String id, String label, Array dropDownOptionArray[, Array optionArray])

The Drop-Down field presents choices to the user in a drop down list format. This is best used when there are many options to choose from, such as a list of states or countries.

File

JFormComponentFile(String id, String label[, Array optionArray])

The File field type allows users to select files from their computer to be uploaded on form submission.

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.

Multiple Choice

JFormComponentMultipleChoice(String id, String label, Array multipleChoiceArray[, Array optionArray])

The Multiple Choice field presents a list of choices to the user, allowing them to select one or more of the options depending on the Multiple Choice field type.

Single Line Text

JFormComponentSingeLineText(String id, String label[, Array optionArray])

The Single Line Text field is a one line input field that accepts text. This form field is best used for short answer, free form questions such as, "What is your favorite animal?"

Almost all forms have a single line text component, so we put a lot of effort in making this component type as robust as possible.

Text Area

JFormComponentTextArea(String id, String label[, Array optionArray])

The Text Area field is a multi-line input field that accepts text. This form field is best used for long answer, free form questions such as, "Can you describe the animal that attacked you?"

Next Section: Advanced Fields