Documentation

Everything you need to know about using FlowAnalytics to track and analyze your sales data.

Form Overview

The business form is designed to handle multiple product categories such as clothing, jewelry, beauty, dropshipping, electronics, and others. Each category has its own set of fields and pre-configured options to streamline data entry.

The form is divided into two main sections: 1. Required Fields: These include brand, purchase date, price paid, and price sold. They are common across all product types. 2. Category-Specific Fields: Each product category has its own unique set of fields (e.g., for beauty products, fields like Beauty Category, Product Type, Shade/Variant, and Texture/Finish).

When you select a business type, the form dynamically loads the appropriate fields along with their predefined options.

Validation and Submission

Before submission, the form checks for the presence of all required fields. If any information is missing (for example, if the brand or purchase date is not provided), an error message is displayed.

On successful submission, the form data is sent to the backend and stored accordingly. You will receive feedback confirming whether the operation was successful or if there were any errors during submission.

Understanding Autocomplete

    Our forms include autocomplete inputs for fields like 'Beauty Category', 'Product Type', 'Shade / Variant', and more. These autocompletes provide:
  • Predefined Options: Each autocomplete field comes with a set of common values to help guide your input.
  • Custom Values: The autocomplete is designed to accept new values not included in the list. Simply type in your desired entry and the form will recognize it as a valid input.

This flexibility ensures that while you have the convenience of predefined options, you are not limited when your product specifications differ.

Dynamic Form Behavior

    Depending on the selected business type, the form dynamically merges required fields with category-specific fields. This modular design makes it easy to extend or customize:
  • Adding New Categories: Simply define a new configuration in the `formComponents` object.
  • Customizing Field Options: Adjust inline options directly within each field configuration to suit evolving product standards.

These features are designed to provide a smooth and efficient data entry experience.

Frequently Asked Questions

Q: Can I use custom values in autocomplete fields? A: Yes, the autocomplete fields accept custom input. Even if a value isn't listed, simply type it in and it will be used as your selection.

Q: What happens if I leave a required field blank? A: The form validation will trigger an error message, prompting you to fill in all required fields before submission.

Q: How can I add a new business category? A: To add a new category, update the `formComponents` configuration with your new set of fields and default values, following the existing structure.