WP Manifestindependent plugin directory
manifest / forms / form-to-disk

Form to Disk

WordPress plugin to write form submissions to file and email the file using wp_cron

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/jsoningram/form-to-disk/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

f2d

WordPress plugin to write form submissions to file and email the file using wp_cron

Form Action

marker is a hidden field used to prevent other forms from writing data to file

function formToDisk() {
    var firstName = $('#name').val();
    var lastName  = $('#surname').val();
    var email     = $('#email').val();
    var marker    = $('#marker').val();

    var data = {
        marker: marker,
        email: email,
        firstName: firstName,
        lastName: lastName,
        action: 'form_to_disk'
    };

    if (firstName && lastName && email) {
        $.ajax({
            type: 'POST',
            url: ajaxUrl',
            data: data,
            error: function() {
                // handle error
            },
            success: function(data) {
                // handle success
            }
        });
    }
}