Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ public static function parse( $attributes, $content, $context = array() ) {
'error_types' => array(
'is_required' => __( 'This field is required.', 'jetpack-forms' ),
'invalid_form_empty' => __( 'The form you are trying to submit is empty.', 'jetpack-forms' ),
'invalid_form' => __( 'Please fill out the form correctly.', 'jetpack-forms' ),
'invalid_form' => __( 'Please complete all required fields to continue.', 'jetpack-forms' ),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to split this error into two; one for multiple required fields, missing and another for invalid content like invalid email.

You might have no required fields at all in the form, and only issue is that email was filled incorrect, for example.

'network_error' => __( 'Connection issue while submitting the form. Check that you are connected to the Internet and try again.', 'jetpack-forms' ),
),
'admin_ajax_url' => admin_url( 'admin-ajax.php' ),
Expand Down
Loading