Skip Navigation

[Closed] Post form conditional statements

This support ticket is created 2 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Waqar 2 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2465751

Can you please confirm if for Post Forms, we should be using wpcf-conditional or cred_show_group?
Especially when there is a condition like the following which has a shortcode as well as a user selection

[wpv-conditional if="( $(rounds) ne '' ) OR ('[status]' eq 'Unallocated')" mode="fade-slide"]

It appears that when using wpv-conditional, the $(rounds) check is not firing but then using cred_show_group, the [shortcode] check is not firing?

#2466345

Hi,

Thank you for contacting us and I'd be happy to assist.

Your observation is correct and the two shortcodes work differently:

1. The 'cred_show_group' shortcode is used in the Toolset forms, to dynamically show/hide conditional form groups, based on the changeable values of the fields available in the forms.

2. The 'wpv-conditional' shortcode is used in the Toolset content templates and views, to show/hide the conditional content based on the values already saved in the database, when the page loads. It can also be used in the forms, but, unlike the 'cred_show_group' shortcode, it won't be linked to the changeable values of the form fields, and won't change state dynamically.

I hope this clarifies the difference and let me know if you need any further assistance around this.

regards,
Waqar

#2466425

Hi,

So in my scenario where I am using $(rounds) and then a shortcode, what should I use? Neither wpv-conditional or cred_show_group work but they did in PHP 7.3?

Cheers

#2466709

Thanks for writing back.

To better understand the requirement, I'll need to see exactly how this form is set up and what is your desired result.

Can you please share temporary admin login details, along with the specific details of what you have in mind?

I'll be in a better position to suggest the next steps, accordingly.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

The topic ‘[Closed] Post form conditional statements’ is closed to new replies.