# formidable/trunk/classes/views/styles/components/templates/dropdown.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version trunk. 11 lines.

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/styles/components/templates/dropdown.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/styles/components/templates/dropdown.php
- Modified: 2024-09-10T13:42:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/styles/components/templates/dropdown.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<span class="frm-style-component frm-dropdown">
	<select <?php echo esc_attr( $field_name ); ?> id="<?php echo esc_attr( $component['id'] ); ?>" tabindex="0">
		<?php foreach ( $component['options'] as $value => $name ) : ?>
			<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $field_value, $value ); ?>><?php echo esc_html( $name ); ?></option>
		<?php endforeach; ?>
	</select>
</span>
```
