In this documentation, we will demonstrate how to utilize a Radio field to add a conditional field in checkout using FunnelKit. Depending on the option users select in the checkbox field, another field will be displayed.
Here are the steps you need to follow:
Note: To demonstrate the process, we will use a conditional field called Tax Exempt using the Radio type. If users select Yes, a Tax Number field will appear, allowing them to enter their tax number.
Step 1: Create the radio field
The first step is to create the radio field. The value selected in this field will determine when the conditional field is shown to the users.
To do so, click the Add New Field button and set up the following fields:
- Field Type: Choose Field Type as “Radio”.
- Label: Enter the Field Label. For example: Tax Exempt.
- Set the Field ID (Order Meta Key): This key determines where the value of this field is stored. Use underscores _ if the ID has multiple words (e.g., tax_exempt).
- Options (|) separated: Add Options, separated by a pipe |. Example: Yes|No.
- Default: Add a default Value, Example: No.
- Show on Thank You Page: Enable to display of the field value on the order confirmation page.
- Show in Order Email: to include the field value in the customer’s order email.
- Required: Must make it required to collect the conditional data.

Then hit Add to add the radio field.

Next, drag and drop the field to your desired section on the checkout page.
Step 2: Add the conditional field
Now, follow the same process to add the conditional field. In our case Tax Number. Make sure to place it after the conditional field on the checkout form.

Step 3: Add Conditions
To make a field appear only when a specific option is selected, we need to add a condition. Click “Edit Conditions”.

Next, expand the section that contains the conditional field and select “Apply to specific fields”. Hit “+ Add Field” and choose the field you want to make conditional.

Next, click “+ Add Field” again, select “Fields” to expand. and view existing fields.

Then search for and select the field whose value will trigger the conditional field.

Set the condition, for example:
- Tax Example: Show “Tax Number” only if “Tax Exempt” (Radio) is Yes.
Finally, click “Add” and save the checkout page with the custom fields.

Step 4: Test the conditional checkout field using a radio field
Try placing a test order, and on the checkout page, you will only see the Radio field and no conditional field since the default value is No.

If you choose “Yes”, you will see the conditional field.

You can follow this process to create any conditional field using a Radio field and add it to your checkout form.


