# jetformbuilder/3.6.6/templates/fields/number-field.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 30 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/templates/fields/number-field.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/templates/fields/number-field.php
- Modified: 2024-05-29T11:33:58+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/jetformbuilder/3.6.6/code/templates/fields/number-field.php#L10-L20`.

```php
<?php
/**
 * input[type="hidden"] template
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

$this->set_value();
$this->add_attribute( 'class', 'jet-form-builder__field text-field' );
$this->add_attribute( 'class', $args['class_name'] );
$this->add_attribute( 'placeholder', $args['placeholder'] );
$this->add_attribute( 'required', $this->block_type->get_required_val( $args ) );
$this->add_attribute( 'min', $args['min'] );
$this->add_attribute( 'max', $args['max'] );
$this->add_attribute( 'step', $args['step'] );
$this->add_attribute( 'name', $this->block_type->get_field_name( $args['name'] ) );
$this->add_attribute( 'data-field-name', $args['name'] );
$this->add_attribute( 'id', $this->block_type->get_field_id( $args ) );
$this->add_attribute( 'data-jfb-sync' );
?>
<div class="jet-form-builder__field-wrap">
	<?php do_action( 'jet-form-builder/before-field', $this ); ?>
	<input type="number" <?php $this->render_attributes_string(); ?>>
	<?php do_action( 'jet-form-builder/after-field', $this ); ?>
</div>
<?php

```
