These blocks work with JavaScript maps. Almost all blocks can be used browser-side and server-side.
URL Parameters
![URL Parameters](/image/5548/URL-Parameters/gi-responsive__100.png?lastModified=1565948403827)
This block creates a map from the URL parameters of the current page. That means it can only be used browser-side (although the result can be saved and submitted back to the server).
For example, adding the following blocks to a page level handler:
![URL Parameter Map Example](/image/5549/URL-Parameter-Map-Example/gi-responsive__100.png?lastModified=1565948700253)
on a form with this URL:
www.mysite.com/testform?pageSessionId=f8eeb04e-10b4-4e3e-a84b-b4487f8ebf57&fsn=7cb273a3-97eb-443c-a2cf-5ebdbab8b899
would create this form helper variable:
URLPARAMS = {
"pageSessionId": "f8eeb04e-10b4-4e3e-a84b-b4487f8ebf57",
"fsn": "7cb273a3-97eb-443c-a2cf-5ebdbab8b899"
}
Validation Failed
![Validation Failed](/image/6877/Validation-Failed/gi-responsive__100.png?lastModified=1709737107297)
This block is designed to be used in validation functions. It sets the result as invalid and throws an error that can be caught by the field's error message function.
{
isValid: false,
errorType: 'CUSTOM_ERROR'
}
See Error Message Functions for an example.