# Form fields, branching and calculations

> Every field type in the Chatbot Form Builder, how to branch with conditions, how to calculate prices or scores, and how to add Google Calendar bookings.

Source: https://www.wpbot.pro/help/chatbot-form-fields-and-conditions/  
Section: ChatBot › Conversational Forms  
Updated: 2026-11-26

Each field in a conversational form is one step of the conversation. Choose the **Field Type** on the right of the **Layout** tab.

## Field types

| Field Type | What the visitor sees or does |
| --- | --- |
| **Simple Text** | Types a short answer. Set **Minimum Length** and **Maximum Length** if needed. |
| **Email Address** | Types an email address. |
| **Phone Number (Basic)** | Types a phone number in the format (999)999-9999. |
| **Number** | Types a number. Good for quantities and ages. |
| **URL** | Types a website address. |
| **Select Option** | Taps one of several answers shown as buttons. Tick **Show as Menu** or **Show as Dropdown** for other layouts. |
| **Checkbox** | Ticks one or more answers. |
| **DateTime Picker** | Picks a date and time. |
| **File** | Uploads a file, such as a photo or a document. |
| **HTML** | Reads a message: text, links or HTML. No answer needed. Use it for welcome and thank-you messages. |
| **Calculation** | Sees a result worked out from earlier answers, for example a price or a score. |
| **Payment** | Pays with Stripe at this step. See [Take payments in conversational forms with Stripe](/help/chatbot-form-payments-with-stripe/). |
| **Hidden** | Nothing. Stores a value with the entry. |
| **OpenAI Instructions** | Nothing (not visible for user). Gives the AI instructions when **Connect the Form with the OpenAI** is on. |
| **Google Calendar** | Picks a free time in your Google Calendar. Shown only after you switch Google Calendar on (see below). |

Tip

Buttons beat typing. A **Select Option** question gets more answers, and the answers are clean for reports and your CRM.

## Branch with a field's Condition

The simplest branching: ask a question only when the visitor gave a certain answer to an earlier **Select Option** field.

1. Add a **Select Option**  field, for example "What do you need?" with **Website** , **Shop**  and **Other** .
2. Click a later field and choose an answer in its **Condition** , for example **Shop** .
3. That field is asked only to visitors who chose **Shop** .

## The Conditions tab

For more complex rules, open the **Conditions** tab and click **Add Conditional Group**.

![The Conditions tab of a conversational form](https://www.wpbot.pro/wp-content/uploads/2026/11/wpbot-docs-cb2-form-conditions.jpg)

_The Conditions tab: groups of rules that show or hide fields._

- **Type:**  **Show**  or hide the fields when the rule matches.
- **Add Conditional Line:**  a rule such as "budget **is greater than**  1000". Operators: **is** , **is not** , **is greater than** , **is less than** , **contains** .
- All lines in a group use AND. Separate groups use OR.
- **Applied Fields:**  the fields this condition shows or hides.

## Start another intent from a form

A **Select Option** answer can start something else instead of the next question: another conversational form, a Simple Text Response (give it an intent name) or live chat. Add the intent's name as the option's value.

## Calculations

Add a **Calculation** field to show a price, a quote or a score.

- Build the formula with **Add Operator Group** , or switch to **Manual Formula**  and use `%field_slug%` for the value of an earlier answer, for example `%rooms% * 49 + %nights% * 20`.
- **Before**  and **After**  add text around the result, for example a currency sign.

The example forms **BMI Calculator**, **BMR Calculator** and **Pricing form** show how it works.

## Google Calendar bookings

Visitors can book a time that is added straight to your Google Calendar.

1. Open **ChatBot → Forms → Google Calendar**  and tick **Enable Google Calendar** .
2. Paste the JSON key of a Google service account in **Private Key** . Follow **Get Google Calendar Private Key**  or the guide [WPBot Google Calendar API setup](https://www.wpbot.pro/wpbot-google-calendar-api-setup/).
3. In Google Calendar, share your calendar with the service account's email and give it "Make changes to events".
4. Add a **Google Calendar**  field to the form and enter the **Google Calendar ID**  (Google Calendar → Settings → Integrate calendar → Calendar ID).

The chat shows the calendar with busy times, and the visitor picks a free slot.

Note

Google Calendar needs PHP 8.3 or later on your server. The settings page tells you if the Google Client package is missing.

## Availability

In **Master** and **Professional**. Not in Starter or WPBot Free.
