Fig Docs
  • 🏠Welcome to Fig
  • 👋Get Started
    • Download and Install
    • `fig home`
      • My Apps
      • The Sidebar
      • Settings
    • The Fig App Store
    • Hotkeys
  • 💪Autocomplete
  • 😀The Fig CLI
    • 1. Fig Overrides
    • 2. Fig Aliases
    • 3. $FIGPATH
    • 4. Fig Apps
  • 📖Interactive Runbooks
    • Form Elements
      • Input
      • Textarea
      • Dropdown
      • Checkboxes
      • Buttons
    • Templating & Interpolation
    • Scripting Language (Psilo)
      • Full List of Functions
    • Running Runbooks
    • Full Examples
  • ⚒️ Build your own CLI
    • `fig build`
    • .fig Files
  • 🧰Build your own App
    • Get Started
    • App Lifecycle
    • Key Concepts
      • Running Shell Commands
      • Reading Environment Variables
      • Accessing Files & Saving Data
      • Loading Local Resources
    • Window Managment
      • Setting Window Properties
      • Repositioning the Window
      • Focusing & Blurring the Window
    • Advanced
      • Creating a Pseudo-Terminal Session
  • Other
    • Fig for Teams
    • Security & Privacy
    • FAQ
    • Contact Us
  • Interactive Runbooks
Powered by GitBook
On this page
  • Summary
  • Elements
  • Input / Text Field
  • Textarea
  • Dropdown
  • Checkboxes
  • Buttons
  1. Interactive Runbooks

Form Elements

PreviousInteractive RunbooksNextInput

Last updated 4 years ago

Summary

All form elements mostly follow the same pattern:

  • a symbol (like :, $, * etc)

  • square brackets:

    • an identifier: lets you refer to the selected value in

    • a placeholder value

  • curly braces:

    • let you define a default value (or a list of options in the case of a dropdown)

    • uses Fig's

^[identifier: placeholder ]{ script }

Note: There should NEVER be a space between the square brackets and curly braces

Elements

Click on each element to get more information + examples

:[identifier: placeholder ]{ defaultvalue }

$[identifier: placeholder ]{ defaultvalue }

^[id: placeholder ]{ array_of_options }

%[identifier: value ]{ default_value }

  • If an identifier is used once, output is boolean

  • If an identifier is used multiple times, output is an array of selected values.

+[identifier: "Button Label"]{ script that is run when button is clicked }

  • Using the button's identifier in mustache braces will show the output of the script to run

📖
Templating & Interpolation
scripting language
Input / Text Field
Textarea
Dropdown
Checkboxes
Buttons