Block - Set Value for Reference Module

Hi there! :wave:

Here we going to look at how to set the value for the reference Module. If you’re wondering what is Reference Module and how to set, you may refer to https://community.inistate.com/t/reference-setting-table-list-for-select-type/121

Module involve:

  1. List of Drivers

  2. List of Lorry with respective Drivers

Let us see how to auto assign the first driver based on the selected Lorry.

  1. Do automation at Form. Turn on the Automation toggle
    image

Overview of the Automation

  1. Firstly add Action Block → Select ‘Find’
    Module : Lorry
    Filter formula script : Reg No is #Form #Lorry #Reg No

  2. Then, add Condition Block to check if the Reg No is found
    image

  3. If Found, add For Block
    #Lorry Found #List → Table name in the Lorry
    each item → Can define any name

image

  1. Then, add Condition Block to check if the driver is None
    #Form #Driver is None
    image

  2. Finally, add Action Block to set the value
    Variable : #Form #Driver
    Value : #item #Driver #Name

image

Result:
CPT2309041743-1280x386