Skip Navigation

[Resolved] Conditional field not work after CRED form submitted

This support ticket is created 6 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Beda 6 years, 1 month ago.

Assisted by: Beda.

Author
Posts
#1118396
Screen Shot 2018-10-01 at 10.45.49 PM.png

Dear Sir/Madam,

I have a custom post with some conditional fields setting. I created the CRED form

    <div class="form-group">
        <div class="span2">
            <label>[wpml-string context='cred-form-' name='Social Media']Social Media[/wpml-string]</label>
        </div>
        <div class="span10">
            [cred_field field="enquiry-social-media" force_type="field" class="form-control" output="bootstrap"] [cred_show_group if="( $(enquiry-social-media) ne '' )" mode="fade-slide"] [cred_field field="enquiry-social-media-account" force_type="field" class="form-control"
            output="bootstrap" placeholder="Please input the account"] [/cred_show_group]
        </div>
    </div>

There is not problem when the first time entry, after the CRED form submitted, the conditional fields doesn't work. Enclosed the screenshot of the CRED form setting.

Best regards,

Kelvin.

#1118868

You are using a Forms condition successfully on a form, but after submitting it with AJAX the condition is broken, right?
I can replicate it and escalated the problem.

#1118979

Dear Beda,

Yes you are correct

#1119000

I'll update you here once there is a solution.
For now, the only I found is to redirect to another page or reload the page.

#1190418

There is an erratum now you can follow, which will be updated as resolved once a solution is present.
It also features the only available workarounds.
https://toolset.com/errata/toolset-forms-conditionals-not-applied-after-the-form-is-submitted-but-kept-displaying-using-ajax/