Hello @vinodbilagi416
Please use the following code in a MU plugin which should do the trick for you.
How to: https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
<?php
add_filter(
'forminator_custom_form_submit_errors',
function( $submit_errors, $form_id, $field_data_array ) {
$field_name = 'name-1';
$submitted_fields = wp_list_pluck( $field_data_array, 'value', 'name' );
if( !preg_match( '/^[a-z]+$/i', $submitted_fields[ $field_name ] ) ) {
$submit_errors[][ $field_name ] = __( 'There is something wrong ' );
}
return $submit_errors;
},
10,
3
);
Keep in mind to change the name field ID, if not the same with your form, here:
$field_name = 'name-1';
Take care,
Dimitris