Script to Populate Dependency Fields with the help of custom Module
Requirement :
The onboarding form should include three interrelated fields: Department, Division, and Job Title.
This setup ensures that the Division and Job Title fields in the onboarding form dynamically filter their values based on the selected Department and Division, maintaining consistency and data integrity.
You’ll need to create three custom modules to manage the hierarchical data structure:
Purpose | Module Name | Key Fields |
Department | cm_cddjsline_cdepartment | Department Name, multi_cdivision (Multi-Select Divisions) |
Division | cm_divijbsline_cdivistion | Division Name, multi_cjobtitle (Multi-Select Job Titles) |
Job Title(optional if stored as multi-field only) | sline_cjobtitle | Job Title Name |
⚙️ Navigation: Go to Admin → Custom Modules → Create New Module
Add the fields listed above and ensure that field names remain consistent.
Add the following User Defined Fields (UDFs) to the Onboarding Form:
Label | Field Name | Field Type |
Department | udf_sline_304 | Dropdown |
Division | udf_sline_305 | Dropdown |
Job Title | udf_sline_306 | Dropdown |
Paste the following script in the Form Rules → Execute Script section.
This script dynamically filters the dropdown values based on user selections.

If you need assistance in configuring this, reach out to the support for guidance.