Conditional Logic does not work with MB Frontend Submission

Support MB Conditional Logic Conditional Logic does not work with MB Frontend Submission

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #6506
    ludovic.meyerludovic.meyer
    Participant

    Hello,

    I want to use MB Conditional Logic with MB Frontend Submission.
    The conditional logic works well in admin, but not in frontend.

    Can you do something ?

    Regards,

    #6539
    Truong GiangTruong Giang
    Participant

    Hi there,

    Thank you for your report. Can you share the code you use to register meta box?

    #6540
    Tan NguyenTan Nguyen
    Participant

    Dear ludovic,

    You're right. Conditional Logic currently only works in admin. I'll check the plugin and release new update asap!

    #6541
    ludovic.meyerludovic.meyer
    Participant

    Thank you !

    #6547
    jcleavelandjcleaveland
    Participant

    I have the same issue. I am commenting here to receive the follow-up reply when the update is complete. No need for any other response.

    Thanks for the great support!

    #6917
    jcleavelandjcleaveland
    Participant

    Hi,

    Is there any update on conditional logic for front-end forms?

    Thanks!

    #6929
    Tan NguyenTan Nguyen
    Participant

    Hi buddy!

    Please update to the latest version (1.5) which supported frontend submission extension.

    Cheers!

    #6934
    jcleavelandjcleaveland
    Participant

    Just installed the newest version and I'm not having any luck front-end or back-end.

    It is writing both "display:none" and "visibility:hidden" to the hidden divs.

    Example:
    <div class="rwmb-field rwmb-select-wrapper" data-visible="hidden" style="display: none;visibility: hidden;"><div class="rwmb-label">

    It seems like that should not be the case. If I remove the inline styles in the dev tools, I can get them to appear.

    Here is a sample of one of my conditional fields for reference:

    array(
       'id' => $prefix . 'financial_assistance_choice',
       'name' => esc_html__( 'Did you provide financial assistance or an incentive?', 'obh' ),
       'type' => 'radio',
       'placeholder' => '',
       'options' => array(
    	esc_html_x( 'Yes', 'Value for radio select', 'obh' ) => esc_html__( 'Yes', 'obh' ),
    	esc_html_x( 'No', 'Value for radio select', 'obh' ) => esc_html__( 'No', 'obh' ),
        ),
       'inline' => true,
    ),
    array(
    	'id' => $prefix . 'financial_assistance_types',
    	'name' => esc_html__( 'Which type of assistance?', 'obh' ),
    	'type' => 'select',
    	'placeholder' => 'Select the Assistance Type',
    	'visible' => [ $prefix . 'financial_assistance_choice', '=', 'yes'],
    	'options' => obh_print_at_field_vars(),
    	'toggle_type' => 'visibility'
    ),

    I recently added the "toggle_type" setting as an attempted remedy but it did not solve the issue.

    Thoughts?

    #6935
    jcleavelandjcleaveland
    Participant

    Aw shoot... As soon as I posted this I realized the problem. I have the "Yes" as the value for the option capitalized and the "yes" for the visibility option lowercase.

    All works as expected now.

    Thanks for the update!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Conditional Logic does not work with MB Frontend Submission’ is closed to new replies.