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

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

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

```php
<?php
/**
 * Quantity field product association setting.
 *
 * @package Formidable
 *
 * @var array $field Field data including 'id' and 'product_field'.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<p class="frmjs_prod_field_opt_cont frm_prod_field_opt_cont">
	<label>
		<?php esc_html_e( 'Product Field', 'formidable' ); ?>
	</label>
	<span id="field_options[product_field_<?php echo esc_attr( $field['id'] ); ?>]" class="frmjs_prod_field_opt frm_grid_container" data-frmfname="field_options[product_field_<?php echo esc_attr( $field['id'] ); ?>][]" data-frmcurrent="<?php echo esc_attr( json_encode( $field['product_field'] ) ); ?>">
		<?php
			if ( ! empty( $field['product_field'] ) ) {
				foreach ( $field['product_field'] as $f ) {
				?>
					<input type="checkbox" name="field_options[product_field_<?php echo esc_attr( $field['id'] ); ?>][]" value="<?php echo esc_attr( $f ); ?>" checked="checked" />
				<?php
				}
			}
		?>
	</span>
</p>

```
