# formidable/trunk/classes/views/frm-fields/back-end/format-dropdown.php

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

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/frm-fields/back-end/format-dropdown.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/frm-fields/back-end/format-dropdown.php
- Modified: 2025-12-09T17:47:34+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/frm-fields/back-end/format-dropdown.php#L10-L20`.

```php
<?php
/**
 * @package Formidable
 *
 * @since 6.18
 *
 * @var array        $field Field data.
 * @var array        $args  Includes 'field', 'display', and 'values' settings.
 * @var FrmFieldType $this  Field type object.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

$field_id = $field['id'];
?>
<p class="frm6 frm_form_field frm-format-dropdown">
	<label for="format_dropdown_<?php echo esc_attr( $field_id ); ?>">
		<?php esc_html_e( 'Format', 'formidable' ); ?>
	</label>

	<select
		name="field_options[format_dropdown_<?php echo esc_attr( $field_id ); ?>]"
		id="frm_format_dropdown_<?php echo esc_attr( $field_id ); ?>"
		class="frm_format_dropdown frm_select_with_upgrade frm_select_with_dependency"
		data-field-id="<?php echo intval( $field_id ); ?>"
	>
		<?php
		$options_view_path = FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/format-dropdown-options.php';

		/**
		 * Includes the formatted options view file.
		 *
		 * @since 6.18
		 *
		 * @param string $options_view_path The path to the options view file.
		 */
		require apply_filters( 'frm_format_options_view_path', $options_view_path );
		?>
	</select>
</p>

<?php
/**
 * Fires after the format dropdown template is rendered.
 *
 * @since 6.18
 *
 * @param array $field The field array.
 */
do_action( 'frm_after_format_dropdown_template', $field );

```
