Hello @elieelia9
I trust you’re doing well!
I could replicate the same behavior on our end and have forwarded this to our developers fo additional feedback. We will reply back in this thread once there will be an update.
Have a good day and take care!
Kind regards,
Nastia
Hello @elieelia9
I trust you’re doing well!
Please try the following hot-fix. Add the following code to a fucntions.php of our child theme:
add_filter( 'forminator_field_single_markup', function( $html, $id, $required, $options ){
if( $options ){
foreach( $options as $option ){
if( $option['value'] || is_numeric( $option['value'] ) ){
$html = str_replace( 'value="' . esc_html( $option['label'] ) . '"', 'value="' . esc_html( $option['value'] ) . '"', $html );
}
}
}
return $html;
}, 10, 4 );
This code can also be added as a mu-plugin. To do so, please create a forminator-field-single-markup.php file, add <?php at the top at the above snippet bellow.
Upload the file to /wp-content/mu-plugins/ directory. If there is no mu-plugins folder, please feel free to create it.
Let us know if you have any further questions.
Kind regards,
Nastia
Hi @wpmudev-support9 thank you for your reply. I have attempted your fix by adding the code as a mu-plugin as seen by the following screenshots:
https://ibb.co/sWT3bhF
https://ibb.co/Fm01CF5
With this implementation I am still getting the following results on submissions where the label is appearing instead of the number 0. Please let me know if I have followed your steps incorrectly
Hello @elieelia9
I trust you’re doing well!
Thank you for sharing these screenshots. Please change the folder name inside the wp-content from mu-plugin to mu-plugins.
After this please see if the snippet is working for you!
Let us know how it went!
Kind regards,
Nastia