App Builder \ Code Events
Before Render

Thaha
App Builder & Automation Expert
Stay Updated with ProcFu!
Subscribe to our newsletter for the latest tips, updates, and automation insights.
Subscribe Now- This is a server-side event that utilizes ProcScript. So you have access to the entire Functions API library.
- This code is executed following the "Before Process" phase, making it the second step in the sequence.
- The following variables are available:
location
: Returns the current URL. Changing this value redirects the page to the new URL.url_parameters
: Provides an array of the parameters passed to the URL.my_variables
: Enables access to previously set variables and allows setting new ones.custom_tokens
: Access and set custom tokens here.is_logged_in
: Indicates whether a user is logged in (true) or not (false).auth_item
: Returns the authenticated user's item as raw JSON, including values, config, etc.auth_item_values
: Isolates just the data values from the "auth_item", omitting configuration details and other metadata.- By this stage, the screen's data becomes available. Specifically for detail screens, two additional variables are introduced, which are absent (and return null) in other screen types due to the lack of a current item.
current_item
: Delivers the current page item in raw JSON format, inclusive of values, configuration, and more.current_item_values
: Isolates just the data values from the "current_item", omitting configuration details and other metadata.
Examples:
- For instance, if you wish to save a field value for later use in the On Render section:
my_variables["status"] = current_item_values["status"];