Assigning a task
4 of a 4-part CRUD use case series. In this article, you'll learn how to assign a task to a role in your application.
Note: For this example, a Task overview page has already been created with a data table that lists all existing tasks.
This final CRUD use case walks through assigning tasks to specific users of the application. You’ll create a relation between the Task and Employee models and configure a new Create Form to assign employees to tasks.
Setting up models
For this final use case, create a new model called Employee (with at least Name or Full name property). Because an employee will be assigned to a task, also create a relation between the Task and Employee models.
-
Go to the data model overview and open the schema view.
-
Locate the `Employee` and `Task` models.
-
Connect them so that the relation reads: 'One Employee has many Tasks'.
.gif?width=670&height=365&name=Screen-Recording-2026-04-15-at-1%20(5).gif)
Ensure model permissions are configured correctly. Because this example does not use live data, you can safely set both models to public.
Assigning a new user
To assign a new user to a task, you need to have a page with a Create Form on it.
-
Go to Pages and drag the new Create Form onto the page
-
A pop-up appears in which we have to select Task model
.gif?width=670&height=365&name=Screen-Recording-2026-04-15-at-1%20(6).gif)
-
Click on
Saveto save the new form.
If the relation has been set up correctly, the form now lets you select both the usual task properties and an associated employee.

Select by name
By default, the employee is selected by ID. To make selection more user-friendly, switch to the employee’s name:
-
Choose the Autocomplete component (Task.Employee) within Create Form
-
Open the
Label for optionssetting, select the Employee model, pick the `Full name` property, and confirm.
The form will now display employee names instead of IDs when assigning tasks.
.gif?width=670&height=365&name=Screen-Recording-2026-04-15-at-1%20(7).gif)
Testing the flow
Now that everything is in place, test the task assignment flow. Open the page with the Create Form you just configured and enter values for the task name, description, status, and finally select the assignee from the dropdown.
After submitting the form, the Task overview page will show the new task, including the assigned employee name.
.gif?width=670&height=365&name=Screen-Recording-2026-04-15-at-1%20(8).gif)