Skip to content

How to Use Conditional Logic in Form Fields with Paymattic?

Paymattic offers the Conditional Logic feature inside fields to display them based on specific action/s you set for your forms. This article will guide you through Using Conditional Logic in Form Fields with Paymattic.

Conditional Logic In A Form

First, go to the All Forms section from the Pymattic Navbar, choose a Form, and click the Pencil/Edit icon to open the Editor page of that form.

For example, I choose an existing form to show the whole process.

Opening a form in Paymattic editor

Once you open the Editor page, Add the Desired Fields by typing the " / " or clicking the Plus Icon placed at the bottom. Or, use any existing field to set the conditional logic. For example, I will add the Name and Email field to show you the process.

First, click the Settings Icon in the right corner of your field where you wish to use conditional logic.

Field settings icon location

Enabling the Conditional Render

Now, go to the Advanced tab, find the Conditional Render setting option, and click the Yes radio button to enable the option for setting the Conditional Logic.

Enabling conditional render option

Setting Conditional Logic

Once you enable the option, you can specify the Parameter, its Conditions, and the corresponding Value.

In the "Parameter" field (first field), select an input field that needs to be matched with a value provided in the "Value" field (last field) and set a condition in the "Condition" field (middle field). The parameter will trigger the action if the condition is met.

Plus, with the Conditional Match option, you can choose whether All or Any one of your conditional logic should match to trigger the actions.

Example

I chose "Name" as a parameter, the "Starts With" and "Not Contains" as conditions, and entered "Z" and "S" as the respective values. And, selected All for option conditional match. As a result, only users who meet both conditions of starting name with Z and do not contain the letter S can see the Email Address field.

Setting up conditional logic rules

You can add as many conditional logics as you need by clicking the + Add More button in the left corner below. Plus, you can delete any conditions by clicking the Trash Icon anytime if needed.

Once you finish, click the Update button to save all your configuration.

Update button to save changes

Preview of Set Conditional Logics

Here is a preview of a form where the user has not met the set conditions. As a result, the Email Address is not visible here.

Preview when conditions are not met

Here is a preview of a form where the user met all the set conditions. As a result, the Email Address is visible here.

Preview when conditions are met

This way you can easily create and use Conditional Logic in any field of Paymattic Forms!

Need Help?

If you have any further questions, concerns, or suggestions, please do not hesitate to contact our @support team. Thank you.

Released under the GPL License.