Croco Black Friday 2024 banner element
Copy discount code:
bfcroco2024
Days
Hours
Minutes
Croco Black Friday 2024 banner element
Help Center
Cannot Set Conditional Logic for Posts and Terms in JetEngine Forms

Cannot Set Conditional Logic for Posts and Terms in JetEngine Forms

I want to set the conditional logic for specific posts and terms in checkboxes, select, and radio fields in forms, but it doesn’t work.

Answer
Modified on: Wed, 24 Jan, 2024

You can learn about Conditional Visibility Rules for form fields in this tutorial. Here we explain how to set conditional logic for specific posts or terms.

Go to JetEngine > Forms and click on the “Edit button under the needed form.

jetengine forms

Make sure that you have created the needed fields for posts or terms. Then, hit the “Set up conditional rules button in the field that you want to show or hide according to the conditions.

set up conditional rules

In the Field, choose the field’s name. We have selected the field with the posts.

You can choose “Equal” or another option in the Operator field.

Warning

Be aware that the “Equal” option works for the Radio and Select types of fields; for the Checkboxes, choose the “In the list” option.

edit conditional logic
Warning

In the Value to compare, enter the post IDs. If you enter the post titles, it doesn’t work because Radio, Checkbox, and Select fields get the value post ID by default.

If you want to get value from the post title or another meta field, click to edit the field for posts and enter the name of any meta field. The condition will get the value from there.

value from meta field

The settings described above also work for the field for terms. As you can notice, we have used the “In the list” Operator because our field type is the Checkbox.

conditional logic for the field for terms

Don’t forget to push the “Apply Changes” button after editing all fields and conditions and the “Update” button after you finish changing the form.

We have added the form on the page in the Elementor editor and proceeded to the front end. Without any choices, we can see only two fields.

form on the front end

The fields will still be hidden if we select the posts and terms whose IDs haven’t been entered in the Value to compare fields in conditional logic.

form with the hidden fields

We have chosen the post and term with IDs written in conditions, and two other fields are shown.

form with the shown fields

Was this article helpful?
YesNo

Need help?

Ask Facebook community

Get answers from 22K Crocoblock Community experts from all over the world.

Start a live chat

Ask question to support agent and share its details via chat messages.