# jetformbuilder/1.0.0/templates/fields/date-field.php

JetFormBuilder — Dynamic Blocks Form Builder, version 1.0.0. 15 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/1.0.0/code/templates/fields/date-field.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/1.0.0/raw/templates/fields/date-field.php
- Modified: 2021-01-25T10:05:38+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/1.0.0/code/templates/fields/date-field.php#L10-L20`.

```php
<?php
/**
 * input[type="hidden"] template
 */

$this->add_attribute( 'placeholder', $args['placeholder'] );
$this->add_attribute( 'value', $args['default'] );
$this->add_attribute( 'required', $this->block_type->get_required_val( $args ) );
$this->add_attribute( 'name', $this->block_type->get_field_name( $args['name'] ) );
$this->add_attribute( 'type', 'date' );
$this->add_attribute( 'data-field-name', $args['name'] );
$this->add_attribute( 'id', $this->block_type->get_field_id( $args ) );

?>
<input class="jet-form-builder__field date-field"<?php $this->render_attributes_string(); ?>>
```
