Account

All ProcFu Variables

App Builder & Automation Expert

Stay Updated with ProcFu!

Subscribe to our newsletter for the latest tips, updates, and automation insights.

Subscribe Now

var_set

  • Useful to keep global variables.
  • This is an account level token, if you set this, all your ProcFu users will see the same thing.
  • Can store text upto 64k in size.
  • var_set(varname,value)
  • You CANNOT use another variable to set this.

Before Process

  • translations: Allows translation of elements on the current screen. More information available at the translations page.
  • 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.
  • current_context: Identifies the current screen's ID.

Before and After Submit

  • form_action: Returns "create/update/comment" depending on which form you are submitting.
  • item_id: In before-submit event, it is null for create screen and in the after-submit event, it is the ID of the item that was created. In update screen, it is the ID of the item being updated.
  • form_values: Provides an array of the values submitted in the form.
  • 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.

Before Render

  • 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.
  • current_item: This variable is available only in the "Before Render" event. It contains the full json object of the item that is being rendered.
  • current_item_values: This variable is also available only in the "Before Render" event. It contains the cleaned values of the item that is being rendered.

Auth Fail and Auth Success

  • location: Returns the current URL. Changing this value redirects the page to the new URL.
  • my_variables: Enables access to previously set variables and allows setting new ones.
  • custom_tokens: Access and set custom tokens here.
  • username: The username used in the failed login attempt.

On Render

  • target: A jQuery DOM wrapper of the current screen.
  • my_variables: An array holding key-value pairs set during any previous server-side ProcScript event. These variables are read-only in this context.

On Row Select

  • error_message: Set this to block the default action from occurring. The error message must have a value and it must not be "" or null.
  • show_in_modal: Initially set to false. Change this to true if you wish to display the next screen within a modal popup instead of a new page.
  • clicked_id: This holds the ID of the selected row.
  • row_values: An array containing the visible values from the selected row.

Love using ProcFu Guide?

Share your testimonial and let us know how ProcFu has helped you.

Share Your Testimonial

Built with ❤️ by Thaha for the Community