Creating a group by click of a button

Hi,

New user here. I’m trying to build a simple Kanban style project management app similar to Trello where you would input a “List” name which then produces a group, then at the click of another button a text box is produced within the group (a task item from the view of the user) which you would then edit the text for the title of the “task”. Subsequent “tasks” would be added to this “list” at the click of a button and new “lists” would be added to the right of the first “list”.

The issue I’m having is working out how to set a workflow where the click of a button creates the group.

Can anyone help explain how this could be done?

Hi @KB2

It seems to me you would need 2 repeating groups (RGs):

  • one that contains List: that’s the main RG, displayed as columns in Trello
  • one that contains Tasks for each List: that’s the child RG, in each cell of your List RG, displayed as rows in Trello

You should therefore have 3 data types: User, List and Tasks, set like this:

  • User should have a field ‘Lists’ (which is a list of ‘Lists’)
  • List should have a field ‘Tasks’ (which is a list of ‘Tasks’)

Instead of thinking ‘creating a group’, think ‘creating a cell’.
In your List RG, when User clicks ‘Add a list’, run the following workflow:

  • Step 1: Create a List
  • Step 2: Make changes to User: Lists add Result of Step 1

This would create a new cell in your List RG. In the same way, when user clicks ‘Add a task’, run the following workflow:

  • Step 1: Create a Task
  • Step 2: Make changes to List: Tasks add Result of Step 1

Hope that helps

Ah, I hadn’t thought of it like that!

Thanks a lot for the help - thought I’d hit a bit of a hurdle there.

This topic was automatically closed after 70 days. New replies are no longer allowed.