How can I display all woocommerce product/post title in Bricsk form Select field?

I have made a form receiving inquiry from my visitor.
I want to use my product post list in a selection input field. People can select a product name from select option, and send their inquiry.

Please :pray: share your technique, How can I implant it?

Here’s a way to do it dynamically. This approach allows you to pass the post type as a parameter so you can use the same function with multiple post types without have to edit the code ever again.

Also here’s another old post showing how to do that