
You can populate select drop-downs in any Breakdance form by using the Smithy: Populate Select action and setting the source.
Simply add a Select field to your form and give it an ID. Do not add any options, just leave the select empty.
Options can come from Posts, Terms, ACF Select or a custom hook.


From the Target Dropdown Field choose your empty Select field. Then select the source type.

Terms
Terms will return the TOP LEVEL terms only, from whichever taxonomy you choose. If you need to be more specific, try the Hook type (see below).

Posts
With Posts you can select the main post type, and then limit posts to a taxonomy and a term. Leave either blank to include all.
Choose to show the post or term title itself, or the slug, as the visible label.
You can also limit the number of results returned.
ACF Select
To use this option, create an ACF select field and attach it to the relevant post/page. Then add the field key to the form action. If your select field is called ‘my_acf_select’ – enter that. Our action will read the select field, extract the option/value pairs and use them to populate the Breakdance Select.
Custom Hook
The custom hook allows you to populate the select field with anything that you can code, specific terms, custom data from other plugins… whatever you like. This can be added to functions.php or your own plugin.
In the form action, enter a name in the Filter Tag. This will be the name of your custom hook, added to ‘smithy_select_options’. If you enter ‘my_colours’ in the field, your function should look like this:
add_filter( 'smithy_select_options_my_colours', function( $opts ) {
return [
[ 'value' => 'red', 'text' => 'Red' ],
[ 'value' => 'blue', 'text' => 'Blue' ],
[ 'value' => 'green', 'text' => 'Green' ],
];
} );
However you build your select option, they need to be returned in this value/text format.