Hi @johny66cz,
Thanks for reaching out!
This can be accomplished with a little custom code:
function wpf_dev_empty_dropdown_item() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
// Find the option with the default text format "Choice {ID}" and change it to empty ""
$('.wpforms-field-select select option').each(function() {
var defaultOptionRegex = /^Choice \d+$/; // Regular expression to match "Choice {ID}"
if (defaultOptionRegex.test($(this).text())) {
$(this).text('');
}
});
});
</script>
<?php
}
add_action('wpforms_wp_footer_end', 'wpf_dev_empty_dropdown_item', 30);
Please kindly know this code requires using the Classic Dropdown style.
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 WPCode plugin.
I hope this helps!