<!-- Hidden Field Template -->

<input type="hidden" name="form_fields[<?php echo $field -> id; ?>][id]" value="<?php echo esc_attr(wp_unslash($form_field -> id)); ?>" />

<div class="misc-pub-section">
	<table class="form-table">
		<tbody>
			<tr>
				<th><label for="form_fields_<?php echo $field -> id; ?>_required"><?php _e('Required?', 'wp-mailinglist'); ?></label></th>
				<td>
					<label class="newsletters-custom-checkbox"><input <?php echo (!empty($form_field -> required)) ? 'checked="checked"' : ''; ?> type="checkbox" name="form_fields[<?php echo $field -> id; ?>][required]" value="1" id="form_fields_<?php echo $field -> id; ?>_required" /><span class="check-icon"></span><?php _e('Yes, this field is required', 'wp-mailinglist'); ?></label>
					<span class="howto"><?php _e('Turn this on to require the user to make a selection or fill in a value.', 'wp-mailinglist'); ?></span>
				</td>
			</tr>
		</tbody>
	</table>
</div>