AJForm Documentation - AJForm Home

STEP 2 - Create AJForm form initialization

A form will not be initialized by AJForm unless you want it to. Here is an example AJForm initialization:

<form action="example.php" onsubmit="ajform:exampleCallback();">

Or you can pass arguments to the initializer:

<form action="example.php" onsubmit="ajform:exampleCallback( someVar, 888, 'hello world', 93.789 );">

exampleCallback may be any function name you want. The arguments you pass to exampleCallback may ONLY be a number, quoted string, or global variable name. Here are some valid examples:

Here are some examples of INVALID arguments:

Step 2 Examples

Previous - Step 1 | Next - Step 3