PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Editing Entries - Disable Update Button Until Form Finishes Loading

  1. We have a form that is really long. This can take 30+ seconds to load. Sometimes the admin make a change and forget to wait until the entire form finishes loading.

    Big problem: data loss!

    If an admin saves the form too early, GF writes all the empty fields with empty data :(

    I think the easiest solution would be to disable the update button until the form is finished loading.

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  2. Thank you for the suggestion. I'll bring it to the attention of the development team.

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  3. I haven't heard anything more on this. I think when someone spends an hour filling out a form and that data is wiped out with one small mistake... there's a big problem.

    Here is an easy solution:

    entry_detail.php line ~396

    $update_button = '<input class="button-primary" type="submit" tabindex="4" value="' . $button_text . '" disabled name="save" onclick="' . $button_click . '"/>'
    ;

    qtip_init.js line ~33

    jQuery("[name='save']").removeAttr('disabled');

    that will disable the button until the page has finished loading

    Posted 11 years ago on Thursday March 21, 2013 | Permalink
  4. Thank you for that code. I'll bring your concern and the suggested fix to the attention of the development team.

    Posted 11 years ago on Saturday March 23, 2013 | Permalink