Next, we are going to add a “Create new” button to our Service Log. We want to enter the new details into a form - inside a modal.
First, we will create and configure a button.
Create the button, and position it on the screen using a container. We place the container above our Service Log table, place the button inside, and right-align it.
Click on your button, and choose “Define Actions”.
Add a “Navigate To” action, with the URL “/service-log/new/row”, and tick the box to “Open screen in modal”.
Next, we will create a new screen that allows us to create new “Service Log” rows.
Click the “+” button to create a new screen.
Select the template “Service Log - new”.
Set the URL to “/service-log/new/row”.
Click “Create”. This will bring you to your new screen.
Click on the “Save” button on your new screen, then “Define Actions”.
Remove the “Navigate to” action.
Add a new action for “Close Modal”.