Block - Set Value Add Row in a Form (Module + Table)

Hi,

Example: When creating a new entry (I’m using the default form), find records from another module and set the value in the form.

Module: My Flow & Project Task (For example)

  1. Go to the default form
  2. Open and scroll all the way and ‘Add Automation’ 2.
  3. Drag & drop Condition block

screenshot-2022.04.26-16_36_26

  1. Type condition #Form#Yes is True and #Form#Table.Count==0
  • This indicates that when ticking the ‘Yes’ checkbox and if my table is still empty then execute the following automation.
  1. Drag & drop Action block
  2. Click + Add Action
  3. Select ‘Find’
  4. Select ‘Module’: Project Tasks’
  5. Select ‘Filter’: Yes is yes
  6. Click ‘OK’

  1. Click + Add Action
  2. Select ‘Set’
  3. Select ‘Variable’ : #Form#Project (This is the Project (Module type) field)
  4. Select ’ Value’: #ProjectTasksFound
  5. Click ‘OK’

  1. Click + Add Action
  2. Select ‘Create’
  3. Type ‘Value’: addRow(#Form#Table)
  4. Rename 'Varialble: Click ‘edit’ Type: Row (For example)

  1. Click + Add Action
  2. Select ‘Set’
  3. Select ‘Variable’ : #Row
  4. Click ‘Expand’
  5. Add ‘Value’: Text > #ProjectTasksFound’s#Name
  6. Add ‘Value’: Date > #ProjectTasksFound’s#DueDate
  7. Click ‘OK’ & Save studio.

Result

Tick ‘Yes’ - Set #Project and add #Table Row

CPT2204261649-1279x634

1 Like