Ajax Front End Form Submission - Form Disappears.

Support MB Frontend Submission Ajax Front End Form Submission - Form Disappears.Resolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #38376
    Nicholas CoxNicholas Cox
    Participant

    Hi

    I recently updated to front end submission 4.1.1 and when I submit the form via ajax, it validates but the form disappears? and all theta remains is the validation message. Why is this? its doesn't behave in this way in past versions of the addon. If I revert back to a eelier version the form remains there after a successful validation.

    [mb_frontend_form id="dc-product" post_type="products" confirmation="Updated post successfully" submit_button="Update" allow_delete="true" ajax="true"]

    Thanks

    Nick

    #38381
    Long NguyenLong Nguyen
    Moderator

    Hi Nick,

    Yes, from the new version, if the validation is passed then the form will be hidden. If the validation is not passed, the error message will appear as it should. If you want to show the form, please add the attribute edit="true" to the shortcode.

    #38394
    Nicholas CoxNicholas Cox
    Participant

    Ah ok thanks for clearing this up.

    I noticed the rwmb-confirmation message has moved from inside the form wrapper to outside when enabling 'edit=true'. Is there a reason for this? as i was targeting the confirmation messages via CSS using the form ID > child element.

    e.g. this is what the confirmation html looks like

    <div class="rwmb-confirmation">Updated post successfully</div>
    <form class="rwmb-form" ........
    #38408
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I'm not sure what exact the reason is, but you can wrap the form in a <div> tag and style the confirmation text with the custom class > child element.

    #38410
    Nicholas CoxNicholas Cox
    Participant

    Ok thanks. But i was checking if the developers had realised that as its inconsistent and it would mean i will have to go through alot of my existing projects to include wrappers. Would take me a few hours as im using alot of front end forms

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.