Introduction
The parameters in Wized allow easy access to various types of data within the Function Editor. Each parameter represents a specific type of information, making it easier to work with real-time data across different areas of the application.
c: Access to Cookies
- javascript
return c; //Returns an array with all cookies and their values
- javascript
return c.cookie_name: //Returns the specific value of the indicated cookie. For more information, refer to the Cookies section.
f: Access to Forms
- javascript
return f: // Returns an array of all created forms, where each form is an object that includes inputs as properties.
- javascript
return f.form_name: //Returns an object with the inputs of a form (name, email, password, etc.).
- javascript
return f.form_name.email: //Returns the value of the "email" input within the form
Note
- In order for Wized to recognize forms, they must have the Wized attribute.
- Form values are only accessible after the form has been submitted;
i: Access to Input Fields
- javascript
return i : // Returns a list of all recognized inputs on the current page.
- javascript
return i.input_name : // Returns the real-time value of the specified input.
Note
In order for Wized to recognize inputs, they must have the Wized attribute, Refer to the Input Fields section for more information.
n: Access to Navigation
- javascript
return n.href : // Returns the current URL value.
- javascript
return n.parameter : // Returns an object with all previously defined URL parameters.
- javascript
return n.parameter.parameter_name : // Returns the specific value of a real-time parameter.
- javascript
return n.path : // Returns the current navigation path.
r: Access to Requests
- javascript
return r : // Returns a list of all requests and their values.
- javascript
return r.request_name : // Returns the result, headers, and status of an executed request.
v: Access to Variables
- javascript
return v : // Returns an array of all defined variables along with their values.
- javascript
return v.variable_name : // Returns the specific value of the indicated variable.
t: Access to the Wized Element Object
Provides access to the Wized Element object that defines the element that is associated with the function. This parameter is only available for element actions.