Versions Compared

Key

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

...

What are Hash Variables?

English
Hash Variables give  provide users greater flexibility and freedom in accessing useful information or relevant run-time values with the flexibility to access relevant runtime data from the system.
Hash variable is a placeholder used to dynamically display data , making applications more adaptable and dynamic. Acting as placeholders, they enable the dynamic display of information from various sources within your the 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:

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".

Accessing Workflow Variables:

Display values from workflow variables.plaintext
#variable.variableId# Example: #variable.requesterName# gets the value of the "requesterName" variable.

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 applicationsBy avoiding hardcoded values, hash variables promote customization and flexibility, enhancing the user-friendliness of applications in Joget.

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

...