Hello @vasary,
Thanks for getting in touch!
I apologize for replying to your email late and the inconvenience caused.?I’ve got in touch with our developers and ideally we would not recommend changing the enctype because it might cause problems with the form submissions, more specifically with file uploads.
However, we do have a way to customize the form attributes (including enctype) using wpforms_frontend_form_atts filter
.
function wpforms_change_form_enctype_attr( $form_atts, $form_data ) {
if ( ! empty( $form_data['id'] ) && $form_data['id'] === '553' ) {
$form_atts['atts']['enctype'] = 'application/x-www-form-urlencoded';
}
return $form_atts;
}
add_filter( 'wpforms_frontend_form_atts', 'wpforms_change_form_enctype_attr', 10, 2 );
In the above code snippet, please make sure to change the 533 changed to the specific form ID.
In case it helps, here’s our tutorial with the most common ways to add custom code like this.
For the most beginner-friendly option in that tutorial, I’d recommend using the Code Snippets plugin.
Thanks!