# charitable/1.8.13/templates/form-fields/fieldset.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/templates/form-fields/fieldset.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/templates/form-fields/fieldset.php
- Modified: 2026-01-07T16:49:56+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.8.13/code/templates/form-fields/fieldset.php#L10-L20`.

```php
<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * The template used to display select fieldsets.
 *
 * Override this template by copying it to yourtheme/charitable/form-fields/fieldset.php
 *
 * @author  WP Charitable LLC
 * @package Charitable/Templates/Form Fields
 * @since   1.0.0
 * @version 1.5.0
 * @version 1.8.8.6
 */

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

$charitable_form    = $view_args['form'];
$charitable_field   = $view_args['field'];
$charitable_classes = $view_args['classes'];
$charitable_fields  = isset( $charitable_field['fields'] ) ? $charitable_field['fields'] : array();

if ( ! count( $charitable_fields ) ) :
	return;
endif;

?>
<fieldset class="<?php echo esc_attr( $charitable_classes ); ?>">
	<?php
	if ( isset( $charitable_field['legend'] ) ) :
		?>
		<div class="charitable-form-header"><?php echo esc_html( $charitable_field['legend'] ); ?></div>
		<?php
	endif;

	$charitable_form->view()->render_fields( $charitable_fields );
	?>
</fieldset>

```
