Show button on condition
Allow end users to perform an app action only in certain cases
Try it out!
Scenario
Only show a 'create new record' button if the user has already searched the existing records for potential duplicates.
Challenge:
β ββββ
β ββββ
Steps
Add component
: Table block for the 'Employees' table.- In the Settings Panel, set the Title, and select the 'Email' under Search fields
Add component
: Button and set the Text to 'Add new employee?'- Click on the
Conditions
tab, and click on the conditions button. Add condition
:- Show component IF
{{ Employees Table Block.Rows Length }}
Equals Number 0 Save
- Show component IF
Add component
: Side panelAdd component
: Form block. Set Data to the 'Employees' table.- In the Component Tree, click on the 'Add new employee?' button, and configure the On click actions.
Add Action
: Open Side Panel and select the side panel component. Make sure toSave
.
App export
Downloads may take a few seconds.
Updated 3 months ago