diff --git a/go-form-plugin/go-form-plugin.php b/go-form-plugin/go-form-plugin.php index 6d5d556..cd812c2 100644 --- a/go-form-plugin/go-form-plugin.php +++ b/go-form-plugin/go-form-plugin.php @@ -233,6 +233,7 @@ function go_form_handle_submission() exit; } add_action('admin_post_go_form_handle_submission', 'go_form_handle_submission'); +Pleadd_action('admin_post_nopriv_go_form_handle_submission', 'go_form_handle_submission'); // ========== Shortcode ========== function go_form_shortcode($atts) diff --git a/go-form-plugin/templates/form-shortcode.php b/go-form-plugin/templates/form-shortcode.php index e4574be..d55271d 100644 --- a/go-form-plugin/templates/form-shortcode.php +++ b/go-form-plugin/templates/form-shortcode.php @@ -225,11 +225,11 @@ const lastName = document.getElementById('last_name').value.trim(); if (firstName.length < 2) { - alert('Please enter at least 2 characters in first or last name'); + alert('Please enter at least 2 characters in first and last name'); return; } if (lastName.length < 2) { - alert('Please enter at least 2 characters in first or last name'); + alert('Please enter at least 2 characters in first and last name'); return; }