Refresh form ajax

Support MB Frontend Submission Refresh form ajaxResolved

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

    Hi

    I basically need to be able to auto refresh or away to refresh the metabox front end form after inserting a value into a database without a page fresh. Is it possible to refresh the form to auto pull in new field values via ajax or by failing the form?

    #44855
    PeterPeter
    Moderator

    Hello Nick,

    It isn't possible to reset the new form after submitting it. The form will be removed and you need to reload the page to get a new form.

    #44881
    Nicholas CoxNicholas Cox
    Participant

    Ok is it possible to update/populate a form field value when validating a form? so i could essentially fail the front end form from validating when certain conditions are met via ajax and then populate a field value?

    thanks

    Nick

    #44892
    PeterPeter
    Moderator

    Hello,

    I think you can update a field value by following a previous topic https://support.metabox.io/topic/rwmb_frontend_validate-and-update-_post-value/
    and the function update_post_meta().

    #44939
    Nicholas CoxNicholas Cox
    Participant

    ok thanks that worked

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