Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

English
Hash Variables give users greater flexibility and freedom in accessing useful information or relevant run-time values from the system.

Hash variable is a placeholder used to dynamically display data from various sources within your application. It allows you to insert dynamic content without hardcoding values, making your applications more flexible and customizable.

Key Uses of Hash Variables in Joget:

  1. Fetching Form Data:

    • Retrieve and display data from form fields.
      plaintext

      #form.formId.fieldId#
      Example: #form.myForm.name# gets the value from the "name" field in the form "myForm".
  2. Accessing Workflow Variables:

    • Display values from workflow variables.
      plaintext

      #variable.variableId#
      Example: #variable.requesterName# gets the value of the "requesterName" variable.
  3. System Information:

    • Get details like the current date or logged-in user info.
      plaintext

      #currentUser.username# #date.today#

Example Uses:

  • Personalized Email Content: Use hash variables to customize automated emails.

    plaintext

    Hello #form.requestForm.name#, Your request submitted on #date.today# has been approved.
  • Dynamic User Interface: Show different content based on user input or workflow state.

    plaintext

    {% if #form.feedback.rating# >= 4 %} Thank you for your positive feedback! {% else %} We're sorry to hear that. Please tell us how we can improve. {% endif %}

Summary

Hash variables in Joget make your applications dynamic by allowing you to fetch and display data from forms, workflows, and the system, without hardcoding values. They help create flexible and user-friendly applications.

A hash variable is a special hash-escaped keyword that can be used in :

...