# charitable/1.7.0/templates/form-fields/hidden.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.7.0. 20 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.7.0/code/templates/form-fields/hidden.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0/raw/templates/form-fields/hidden.php
- Modified: 2022-09-21T15:16:00+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/charitable/1.7.0/code/templates/form-fields/hidden.php#L10-L20`.

```php
<?php
/**
 * The template used to display text form fields.
 *
 * @author 	WP Charitable LLC
 * @package Charitable/Templates/Form Fields
 * @since   1.0.0
 * @version 1.0.0
 */

if ( ! isset( $view_args['form'] ) || ! isset( $view_args['field'] ) ) {
	return;
}

$form  = $view_args['form'];
$field = $view_args['field'];
$value = isset( $field['value'] ) ? $field['value'] : '';
?>
<input type="hidden" name="<?php echo $field['key'] ?>" value="<?php echo $value ?>" <?php echo charitable_get_arbitrary_attributes( $field ) ?>/>

```
