The Verj.io JavaScript API's form
interface includes a form.gotoForm("myForm")
function that navigates to the specified
Form.
Optionally, an object containing parameters can be provided. This object must be made up of key-value pairs:
- keys must be the names of URL Parameter Fields on the destination Form.
- values to be automatically inserted into those Fields.
var params = {
name: fields.name.value,
age: fields.age.value,
verified: true
};
form.gotoForm("mySecondForm", params);
Using gotoForm()
invalidates the current User Session and starts a new session for the destination Form. Any Field values on the original Form are cleared and cannot be retrieved.