jFormer Documentation → jFormer Structure →
JFormPage(String id, [, Array optionArray])
The jFormPage object Holds the JFormSection Object Array, and is mostly an organizational wrapper.
new JFormPage(String id, [, Array optionArray])
Create a simple page with a title and description:
$samplePage = new JFormPage('id', array(
'title' => 'Sample Usage Object
',
'description' => 'Sample Description.
'
));
These options are specific to the JFormPage object.
null
HTML | a title for the page, shows up at the top of the page inside a DIV with the class jFormPageTitle.
null
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
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
HTML | The text that shows up above the submit buttons within a DIV with a class of 'jFormPageSubmitInstructions'
null
Array, [dependentOn(string), display(string), jsFunction(Javascript)[, animationOptions(array)]] | see dependencyOptions page for more information.
These Methods are specific to the JFormPage object.
| Name | Arguments | Description |
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!"); });')
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!