# Smart Forms

**Smart Forms** are interactive, electronic forms used to **collect, validate, and process user data** in digital applications. They are a core UI component for applications that require structured data input from customers, partners, or internal users.

Unlike traditional paper or PDF forms, Smart Forms support **dynamic behavior, validation, integration, and electronic submission**, making them essential for modern digital business applications.

On the ONEWEB platform, **App Designer** is used to design and build Smart Forms.

***

#### When to Use Smart Forms

Smart Forms are best suited for scenarios where:

* User input needs to be **captured and processed**
* Data must be validated before submission
* User actions need to **trigger business processes**
* Forms are part of a workflow or transaction lifecycle

They are commonly used in applications for registrations, requests, approvals, submissions, and structured data management.

***

#### Key Benefits of Smart Forms

Using Smart Forms helps organizations to:

* Eliminate paper‑based and PDF forms
* Support **mobile and offline data capture**
* Allow users to start or continue processes from anywhere
* Improve efficiency and usability of business processes

Smart Forms provide a more flexible and user‑friendly alternative to traditional form‑based interactions.

***

#### Core Capabilities of ONEWEB Smart Forms

ONEWEB Smart Forms provide a rich set of capabilities to support complex data entry scenarios.

**Flexible Field Options**

Smart Forms are built using configurable **fields** that support various data types, including:

* Text, numbers, and dates
* Checkboxes and radio buttons
* File uploads and attachments

Each field is designed to capture a specific type of information reliably.

***

**Rules and Dynamic Behavior**

Smart Forms can dynamically **show or hide fields** based on user input or conditions.\
This ensures users see only relevant fields, reducing complexity and improving clarity.

***

**Calculations**

Smart Forms can perform **real‑time calculations** to derive values automatically, helping users avoid manual errors.

***

**Multi‑Page Forms**

Long or complex forms can be split into **multiple pages**, improving readability and user experience.

***

**Dynamic Content Display**

Content within Smart Forms can be displayed dynamically based on context, user input, or process state.

***

**Data Validation**

Smart Forms support **sophisticated validation rules** to ensure data accuracy and completeness before submission.

***

**Data Connectivity**

Forms can **lookup and retrieve data from remote systems**, enabling integration with existing enterprise data sources.

***

**Secure Data Submission**

User input can be securely submitted to organizational databases or backend systems.

***

**Built‑In Database Persistence**

Smart Forms provide configuration‑based control over:

* Which data is stored in the database
* Which data is displayed only in the UI

This reduces the need for manual database intervention.

***

**Customization Support**

Advanced customization is supported using:

* Java
* JSP
* JavaScript

This allows Smart Forms to be extended when necessary.

***

**Instant Preview**

Designers can generate **instant previews** while building Smart Forms, enabling iterative design and faster optimization.

***

**Process Integration**

Smart Forms integrate seamlessly with **business processes** designed in Process Designer.\
User actions on forms can directly trigger workflows and process execution.

***

#### Design Perspective

Within **UI / Page Designer** best practices:

* Use Smart Forms for **data‑driven interactions**
* Combine Smart Forms with Pages for complete user journeys
* Keep forms focused and user‑friendly
* Apply validation and rules to guide users effectively

Smart Forms are the foundation for interactive, process‑driven user experiences on ONEWEB.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onewebstack.com/building-apps/ui-page-designer/ux-ui-components/smart-forms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
