Parameters

Forms Developer Guides Scripting Helpers

The App.params() helpers parse the current URL parameters.

App.Helpers.Parameters.params(name = null)

This method is also available as App.params() for convenience.

This method can be used to return all of the current page's parameters, or a specific parameter by name.

Calling the method without any arguments will return all of the page's parameters as an object.

App.params() == { foo: "Foo!", bar: "Bar!" }

Calling the method with a name argument will return the value of the parameter, or null if it does not exist.

App.params("foo") == "Foo!"
App.params("foo") == App.params().foo

App.Helpers.Parameters.serialize(value)

Serialize an object to URL-safe parameters.

// Returns "foo=Foo!&bar=Bar!"
App.Helpers.Parameters.serialize(App.params());

App.Helpers.Parameters.deserialize(value)

Deserialize URL-safe parameters to an object.

// Returns { foo: "Foo!", bar: "Bar!" }
App.Helpers.Parameters.deserialize("foo=Foo!&bar=Bar!");