# formidable/trunk/classes/views/frm-fields/back-end/gdpr/primary-options.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version trunk. 27 lines.

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/frm-fields/back-end/gdpr/primary-options.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/frm-fields/back-end/gdpr/primary-options.php
- Modified: 2025-12-09T17:47:34+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/formidable/trunk/code/classes/views/frm-fields/back-end/gdpr/primary-options.php#L10-L20`.

```php
<?php
/**
 * Primary options for gdpr field
 *
 * @package Formidable
 *
 * @since 6.19
 *
 * @var array        $field Field array.
 * @var array        $args  Includes 'field', 'display', and 'values'.
 * @var FrmFieldGdpr $this  Field type object.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

// Options here need to be declared in FrmFieldGdpr::extra_field_opts().
$field_id = $field['id'];
?>
<p>
	<label for="gdpr_agreement_text_<?php echo esc_attr( $field_id ); ?>">
		<?php esc_html_e( 'Agreement text', 'formidable' ); ?>
	</label>
	<input type="text" name="field_options[gdpr_agreement_text_<?php echo esc_attr( $field_id ); ?>]" id="gdpr_agreement_text_<?php echo esc_attr( $field_id ); ?>" value="<?php echo esc_attr( FrmField::get_option( $field, 'gdpr_agreement_text' ) ); ?>">
</p>

```
