Skip to content

Commit

Permalink
📝 Add dynamic buttons section
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 28, 2023
1 parent d5b8a43 commit caf4086
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/docs/docs/editor/blocks/inputs/buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ Link the "Default" item to determine the default path independent of what the us
}
/>

## Dynamic items

Instead of adding items manually, you can also display a dynamic list of items based on a variable.

<img
src="/img/blocks/inputs/buttons-dynamic.png"
alt="Dynamic items list"
width="600px"
/>

This is useful when you want to display a list of items from another data source. For this to work, you first need to make sure the variable you are using contains a list of values. This list can be extracted from an integration block like Google Sheets.

## How to

### Add a "Other" button
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

2 comments on commit caf4086

@vercel
Copy link

@vercel vercel bot commented on caf4086 Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-git-main-typebot-io.vercel.app
docs.typebot.io
docs-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on caf4086 Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.