Flux Product Docs
  • What is Flux?
  • Guides
    • Creating a Premium Video
    • Creating Your First Site
    • Creating a Countdown
    • Creating a Navigation Bar
    • Creating a Group
    • Custom 404 Page
    • Adding a Favicon to Your Site
    • Adding Videos to Your Site
    • Managing Your Guest List
    • Asset Management
    • Creating Sites from Site Templates
    • Publishing Site Versions
    • Advanced Debugging
  • Fundamentals
    • Key Concepts
    • Sites
    • Guests
    • Environments
      • Show Variables
    • Flows
      • Anatomy of a Node
      • Connecting Nodes and Building Flows
      • Passing Data
      • Scope
      • Interpolation
    • Keyboard Shortcuts
      • Keyboard Shortcuts - Page Editor
    • Animation States
    • Local Variables
    • Groups
  • Use Cases
    • For Designers
    • For Engineers
      • Custom CSS
      • Custom Modules
    • For Event Manager
      • Intercom Integration
  • Documentation
    • FAQ
    • Glossary
    • 🚀Show Controller
      • Modes
    • Domains and Subdomains
      • Hover
      • AWS Route 53
    • Premium Live Channels
    • Basic Video
    • Premium Video
      • AI Generated Subtitles
      • Supported Input Codecs and Containers
      • Supported Language Labels
      • Serverside Forensic Watermarking
    • Flow Nodes
      • Middleware
  • Modules
    • Access Code
    • Audio
    • Button
    • Carousel
    • Chat
    • Checkbox
    • Container
    • Countdown
    • Date
    • Embed
    • Image
    • Intercom
    • Link
    • Lottie
    • Page
    • Meter
    • Modal
    • Photobooth Gallery
    • Open Login
    • QR Code
    • Radio
    • Rich Text
    • Stack
    • Style
    • Spline
    • Switch
    • Text Input
    • Video
  • Template Guides
    • NatGeo FYC
      • Adding a Panel
    • Meow Wolf All Shrimps
  • 🚀Change Logs
    • July 12, 2024
    • June 08, 2024
    • April 26, 2024
    • April 12, 2024
    • March 29, 2024
    • March 15, 2024
    • March 1, 2024
    • September 2022
    • August 2022
    • July 2022
    • June 2022
Powered by GitBook
On this page
  • Overview
  • Overview
  • TextInput Properties
  • Text Validation Options
  • Min Length
  • Max Length
  • Regex Pattern
  • Properties

Was this helpful?

  1. Modules

Text Input

Last updated 2 years ago

Was this helpful?

Overview

Overview

A Text Input module allows you to add a standard HTML input field that allows for text input usually found in a form submission box.

TextInput Properties

Input Type Dropdown - String or Number Sets the input type requirement. An error will display if invalid input is submitted.

Text Validation Options

Is this field required? Checkbox, default disabled If enabled, guests will be required to toggle this switch on. If a guest attempts to submit the form without toggling it on, a default error message will be displayed.

Custom Required Message String This field can be used to customize the error message to be displayed if the switch for required field is not toggled on. Example: 'Please toggle this switch before proceeding.'

Min Length

Value Number Sets the minimum text character length required on a text input, this is common for passwords. Example: 9

Rule Error Message String Sets the error message displayed if the submitted text input does not meet the required min value. Example: 'This password does not meet the minimum length of 6 characters.'

Max Length

maxLength Number - 18 Sets the maximum text character length required on a text input.

Rule Error Message String Sets the error message displayed if the submitted text input is longer than the defined max value. Example: 'Your password can't be longer than 16 characters.'

Regex Pattern

Rule Error Message String Sets the error message displayed if the input does not match the regexp. Example: 'This input field is invalid.'

Properties

Input Id String Sets the Id of the text input field, which can be referenced by other elements.

Input Label String Sets the label of the input field, displayed above the input field. Example: 'Your Email'

Input Placeholder String Sets the displayed placeholder text within the text input field. Example: 'test@test.com'

Style attribute String, css style property input Can apply additional CSS to customize the switch.

Regex A validation regular expression that can be passed to validate the text input. This is commonly used for email validation. See for more information.

Regex Pattern
Regex
A text input module marked required for users, with placeholder input