# formidable/trunk/classes/views/frm-fields/back-end/product-options.php

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

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/frm-fields/back-end/product-options.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/frm-fields/back-end/product-options.php
- Modified: 2026-05-27T15:12: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/product-options.php#L10-L20`.

```php
<?php
/**
 * Product type setting for product fields.
 *
 * @package Formidable
 *
 * @var array                $field      Field data including 'id' and 'data_type'.
 * @var array<string, string> $data_types Product type options keyed by type slug.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<p class="frm_form_field frm_product_type">
	<label><?php esc_html_e( 'Product Type', 'formidable' ); ?></label>
	<select name="field_options[data_type_<?php echo esc_attr( $field['id'] ); ?>]" class="frmjs_prod_data_type_opt">
		<?php
		foreach ( $data_types as $type => $label ) {
			?>
			<option value="<?php echo esc_attr( $type ); ?>" <?php selected( $field['data_type'], $type ); ?> <?php disabled( $type, 'user_def' ); ?>>
				<?php echo esc_html( $label ); ?>
			</option>
		<?php } ?>
	</select>
</p>

```
