Skip to main content
Salesive Form Builder supports multiple field types to collect different kinds of configuration data. Each field type has specific properties and validation rules.

Text Fields

Text fields collect string data with various input types for different use cases.

Basic Text Input

Single-line text input for short strings.
string
required
Must be "text" for single-line input
string
Example text shown in empty field

Textarea

Multi-line text input for longer content.
string
required
Must be "textarea" for multi-line input
Use cases: Descriptions, long-form content, paragraphs

Email Input

Email address input with validation.
string
required
Must be "email" for email validation
Validation: Ensures valid email format (user@domain.com)

Phone Number Input

Phone number input with tel keyboard on mobile.
string
required
Must be "tel" for telephone input
Note: Triggers numeric keyboard on mobile devices

URL Input

URL input with validation.
string
required
Must be "url" for URL validation
Validation: Ensures valid URL format (https://domain.com)

Number Input

Numeric input with increment/decrement controls.
string
required
Must be "number" for numeric input
Note: Value is still stored as string in config

Media Fields

Media fields allow users to upload or select images, videos, and other files.

Single Image

Upload a single image file.
string
required
Must be "image" for image uploads
boolean
Set to false for single file Default: false
Output: Single URL string

Multiple Images

Upload multiple image files.
boolean
required
Must be true for multiple files
number
Minimum number of images required
number
Maximum number of images allowed
Output: Array of URL strings

Video Upload

Upload video files.
string
required
Must be "video" for video uploads
Supported formats: MP4, WebM, OGG

General File Upload

Upload any file type.
string
required
Must be "file" for general file uploads
Note: Accept all file types; consider adding description with allowed formats

Color Fields

Color fields provide a color picker interface for selecting brand colors.

Color Picker

string
required
Must be "color" for color picker
string
Hex color code (e.g., "#0d65d9")
Output: Hex color code string (e.g., "#ff6b6b") Use cases: Brand colors, theme colors, text colors, background colors

Multiple Color Palette

Create a full color scheme:

Select Fields

Select fields provide dropdown menus for choosing from predefined options.

Single Select

Choose one option from a list.
string
required
Value data type: "text", "number", or "boolean"
boolean
Set to false for single selection Default: false
array
required
Array of option objects with label and value properties
Output: Single value (string, number, or boolean depending on selectType)

Multi Select

Choose multiple options from a list.
boolean
required
Must be true for multiple selections
Output: Array of selected values

Number Select

Select numeric values.
string
required
Must be "number" for numeric values
Note: Values in options must be numbers, not strings

Boolean Select

Select true/false values.
string
required
Must be "boolean" for true/false values
Note: Values must be boolean true or false, not strings

Product Fields

Product fields let merchants pick real items from their own catalogue. The value stored in salesive.config.json is the item ID, so the theme can fetch the live item (price, images, stock) at render time instead of the merchant retyping details into the form.

Catalogue by store type

A Salesive store’s catalogue differs by store type, and the picker follows it automatically. The same type: "product" field works in every storefront mode: Set catalog only when a field must always read one catalogue regardless of the store it is installed on:
string
Pin the picker to one catalogue: "product", "food", or "service" ("products", "menu", "services", and the store-type names are accepted too). Default: follow the store type

Single Product

Pick one product.
string
required
Must be "product" for the product picker
string
Text shown in the search box Default: "Search products..."
boolean
Set to false for a single product Default: false
Output: Item ID string (e.g., "65f1a2b3c4d5e6f708192a3b")

Multiple Products

Pick several products, for example a curated collection strip.
boolean
required
Must be true for multiple products
number
Minimum number of products required
number
Maximum number of products allowed
Output: Array of item ID strings

Using the Value in a Theme

Because the config only holds the ID, fetch the product through the Store API when the page renders:
The storefront /products endpoint serves all three catalogues, returning catalogType: "food" for restaurants and catalogType: "service" for business stores, so one fetch covers every store type. See Get product for the full response shape.
Always handle a missing product. A merchant can delete a product after selecting it, so guard the render path and fall back to hiding the section rather than crashing.
Do not store product names or prices alongside the ID. They go stale the moment the merchant edits the product. Read them from the fetched product instead.

Field Type Summary

Text

Types: text, textarea, email, tel, url, number Best for: Names, descriptions, contact info, numbers

Media

Types: image, video, file Best for: Logos, banners, backgrounds, videos, documents

Color

Output: Hex color codes Best for: Brand colors, theme customization

Select

Types: text, number, boolean Best for: Predefined options, feature toggles, layouts

Product

Output: Item IDs Best for: Featured products, menu items or services, curated collections

Validation Rules

Required Fields

Users must fill required fields before submitting the form.

Media Constraints

Control the number of media files users can upload.

Default Values

Always provide sensible defaults to improve user experience:

Best Practices

Choose the Right Input Type - Use tel for phone numbers (mobile keyboard optimization) - Use email for email addresses (validation + mobile keyboard) - Use textarea for long-form content - Use select when you have predefined options
Validation Considerations - Mark essential fields as required: true - Set realistic minItems and maxItems for media uploads - Provide clear descriptions for complex fields - Test all validation rules in preview mode
Improve User Experience - Always provide helpful placeholder text - Set sensible default values - Group related fields in sections - Add descriptions for fields that need clarification

Next Steps

View Examples

See real-world examples of forms using different field types