jFormer DocumentationjFormer Structure

jFormPage

JFormPage(String id, [, Array optionArray])

The jFormPage object Holds the JFormSection Object Array, and is mostly an organizational wrapper.

Usage

Constructor

    new JFormPage(String id, [, Array optionArray])

Sample Usage

Create a simple page with a title and description:

    $samplePage = new JFormPage('id', array(
        'title' => '

Sample Usage Object

', 'description' => '

Sample Description.

' ));

jFormPage Options

These options are specific to the JFormPage object.

null

title

HTML | a title for the page, shows up at the top of the page inside a DIV with the class jFormPageTitle.

null

description

HTML | a description for the page, shows up at the top of the page under the title inside a DIV with the class jFormPageDescription.

null

onBeforeScrollTo

Array [Javascript, HTML] | a Javascript function that runs before scrolling to the page within the form, as well as optional HTML to display upon completion.

null

submitInstructions

HTML | The text that shows up above the submit buttons within a DIV with a class of 'jFormPageSubmitInstructions'

null

dependencyOptions

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

jFormPage Methods

These Methods are specific to the JFormPage object.

NameArgumentsDescription

Next Page: jFormSection

This page was last edited on April 19, 2011 at 6:32pm.

3 comments (add a comment)

manchetten on 2011-09-14 03:48:32

That about some example code with onBeforeScrollTo option?

It function doesn't work(( But it very necessary for my project

manchetten on 2011-09-14 21:21:22

Solve this problem

The format of call like this:

$jFormPage3 = new JFormPage($survey->id . 'Page3', array(
'title' => 'Title',
'onScrollTo' => array('onBefore' => 'jQuery(function() {alert("Hello world!"); });')

Necron on 2011-12-25 07:25:35

is there a way to show a confirm message on submit?

Like if the users presses submit : Are you sure? OK Cancel

Please help. Thanks!