# formidable/6.16.1/classes/views/frm-fields/back-end/pixels-wide.php

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

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

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

$field_size_container_atts = array();
if ( $display_max ) {
	$max_characters_label         = __( 'Max Characters', 'formidable' );
	$can_fit_label_in_two_columns = FrmAppHelper::mb_function( array( 'mb_strlen', 'strlen' ), array( $max_characters_label ) ) < 20;

	if ( $can_fit_label_in_two_columns ) {
		$field_size_container_atts['class'] = 'frm6 frm_form_field';
	}
}
?>
<p <?php FrmAppHelper::array_to_html_params( $field_size_container_atts, true ); ?>>
	<label for="field_options_size_<?php echo esc_attr( $field['id'] ); ?>">
		<?php esc_html_e( 'Field Size', 'formidable' ); ?>
		<span class="frm-sub-label">
			<?php esc_html_e( '(%, px, em)', 'formidable' ); ?>
		</span>
	</label>

	<input type="text" name="field_options[size_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['size'] ); ?>" size="5" id="field_options_size_<?php echo esc_attr( $field['id'] ); ?>" aria-describedby="howto_size_<?php echo esc_attr( $field['id'] ); ?>" />
</p>

<?php
if ( $display_max ) {
	include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/max.php';
}
?>

```
