Saving empty values with hide_from_front

Support MB Frontend Submission Saving empty values with hide_from_front

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49067
    YumikomYumikom
    Participant

    Hi,

    The form is displayed using a shortcode with hide_from_front specified.
    When saved, the readonly field with hide_from_front specified is saved as an empty value, causing the data to disappear.

    Can I prevent values I don't want displayed on the front end from changing during saving?

    Thanks and regards,
    Yumiko

    #49068
    PeterPeter
    Moderator

    Hello Yumiko,

    I'm not able to reproduce the issue on my demo site. If a field has the setting hide_from_front, it will be excluded from the frontend form. That means the input field is not available in the HTML structure so it isn't possible to save an empty value for that field.

    #49078
    YumikomYumikom
    Participant

    Hi Peter,

    Thanks for your constant support!
    Since the values keep disappearing in my environment, please allow me to review the code on your demo site.

    #49081
    PeterPeter
    Moderator

    Hello,

    I don't use any custom code on the test site, just the basic setup. You can access the test site with the credentials below. Note: it will expire in 2 days.

    https://vengefulstem.s6-tastewp.com/wp-admin
    Username: admin
    Password: 1a3pwf0KuP0

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