PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22.3
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22.3
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-fields / back-end / settings.php

settings.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.22.3, at classes/views/frm-fields/back-end/settings.php

461 lines 21.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <div class="frm-single-settings frm_hidden frm-fields frm-type-<?php echo esc_attr( $field['type'] ); ?>" id="frm-single-settings-<?php echo esc_attr( $field['id'] ); ?>" data-fid="<?php echo esc_attr( $field['id'] ); ?>">
7 <input type="hidden" name="frm_fields_submitted[]" value="<?php echo esc_attr( $field['id'] ); ?>" />
8 <input type="hidden" name="field_options[field_order_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['field_order'] ); ?>" />
9
10 <h3 aria-expanded="true">
11 <?php
12 printf(
13 /* translators: %s: Field type */
14 esc_html__( '%s Field', 'formidable' ),
15 esc_html( $type_name )
16 );
17 ?>
18 <span class="frm-sub-label frm-text-sm">
19 (ID <?php echo esc_html( $field['id'] ); ?>)
20 </span>
21 </h3>
22
23 <div class="frm_grid_container frm-collapse-me" role="group">
24 <?php
25 if ( $field['type'] === 'captcha' && ! FrmFieldCaptcha::should_show_captcha() ) {
26 ?>
27 <div class="frm_warning_style frm-with-icon">
28 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_alert_icon', array( 'style' => 'width:24px' ) ); ?>
29 <span>
30 <?php
31 /* translators: %1$s: Link HTML, %2$s: End link */
32 printf( esc_html__( 'Captchas will not be used until the Site and Secret Keys are %1$sset up%2$s.', 'formidable' ), '<a href="?page=formidable-settings&t=captcha_settings" target="_blank">', '</a>' );
33 ?>
34 </span>
35 </div>
36 <?php
37 }
38 if ( $field['type'] === 'credit_card' && ! FrmAppHelper::pro_is_installed() ) {
39 if ( ! FrmStrpLiteConnectHelper::at_least_one_mode_is_setup() && ! FrmSquareLiteConnectHelper::at_least_one_mode_is_setup() ) {
40 FrmStrpLiteAppHelper::not_connected_warning();
41 } elseif ( ! FrmTransLiteActionsController::get_actions_for_form( $field['form_id'] ) ) {
42 ?>
43 <div class="frm_warning_style frm-with-icon">
44 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_alert_icon', array( 'style' => 'width:24px' ) ); ?>
45 <span>
46 <?php
47 /* translators: %1$s: Link HTML, %2$s: End link */
48 printf( esc_html__( 'Credit Cards will not work without %1$sadding a Collect Payment action%2$s.', 'formidable' ), '<a href="?page=formidable&frm_action=settings&id=' . absint( $field['form_id'] ) . '&t=email_settings" target="_blank">', '</a>' );
49 ?>
50 </span>
51 </div>
52 <?php
53 }
54 }
55 ?>
56
57 <?php
58 if ( $field['type'] === FrmFieldGdprHelper::FIELD_TYPE && FrmFieldGdprHelper::hide_gdpr_field() ) {
59 ?>
60 <div class="frm_note_style">
61 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_alert_icon', array( 'style' => 'width:24px' ) ); ?>
62 <span>
63 <?php
64 /* translators: %1$s: Link HTML, %2$s: End link */
65 printf( esc_html__( 'GDPR field is disabled. Please enable it in the Formidable %1$sSettings%2$s.', 'formidable' ), '<a href="?page=formidable-settings" target="_blank">', '</a>' );
66 ?>
67 </span>
68 </div>
69 <?php
70 }
71 ?>
72
73 <?php if ( $display['label'] ) { ?>
74 <p>
75 <label for="frm_name_<?php echo esc_attr( $field['id'] ); ?>">
76 <?php echo esc_html( apply_filters( 'frm_builder_field_label', __( 'Field Label', 'formidable' ), $field ) ); ?>
77 </label>
78 <input type="text" name="field_options[name_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['name'] ); ?>" id="frm_name_<?php echo esc_attr( $field['id'] ); ?>" data-changeme="field_label_<?php echo esc_attr( $field['id'] ); ?>" />
79 </p>
80 <?php } else { ?>
81 <input type="hidden" name="field_options[name_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['name'] ); ?>" id="frm_name_<?php echo esc_attr( $field['id'] ); ?>" />
82 <?php } ?>
83
84 <div class="frm-hide-empty frm-inline-flex frm-gap-sm frm-flex-wrap frm-items-center frm-my-xs">
85 <?php if ( $display['required'] ) { ?>
86 <div class="frm_form_field">
87 <label for="frm_req_field_<?php echo esc_attr( $field['id'] ); ?>" class="frm-mb-0">
88 <input type="checkbox" id="frm_req_field_<?php echo esc_attr( $field['id'] ); ?>" class="frm_req_field" name="field_options[required_<?php echo esc_attr( $field['id'] ); ?>]" value="1" <?php echo $display['readonly_required'] ? 'readonly onclick="return false;"' : ''; ?> <?php checked( ! empty( $field['required'] ) || ! empty( $display['readonly_required'] ) ); ?> />
89 <?php esc_html_e( 'Required', 'formidable' ); ?>
90 </label>
91 </div>
92 <?php
93 }
94
95 if ( $display['unique'] ) {
96 ?>
97 <div class="frm_form_field">
98 <label for="frm_uniq_field_<?php echo esc_attr( $field['id'] ); ?>" class="frm_help frm-mb-0" title="<?php esc_attr_e( 'Unique: Do not allow the same response multiple times. For example, if one user enters \'Joe\', then no one else will be allowed to enter the same name.', 'formidable' ); ?>"><input type="checkbox" name="field_options[unique_<?php echo esc_attr( $field['id'] ); ?>]" id="frm_uniq_field_<?php echo esc_attr( $field['id'] ); ?>" value="1" <?php checked( $field['unique'], 1 ); ?> class="frm_mark_unique" />
99 <?php esc_html_e( 'Unique', 'formidable' ); ?>
100 </label>
101 </div>
102 <?php
103 }
104
105 if ( $display['read_only'] ) {
106 ?>
107 <div class="frm_form_field">
108 <label for="frm_read_only_field_<?php echo esc_attr( $field['id'] ); ?>" class="frm_help frm-mb-0" title="<?php esc_attr_e( 'Read Only: Show this field but do not allow the field value to be edited from the front-end.', 'formidable' ); ?>" >
109 <input type="checkbox" id="frm_read_only_field_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[read_only_<?php echo esc_attr( $field['id'] ); ?>]" value="1" <?php checked( $field['read_only'], 1 ); ?>/>
110 <?php esc_html_e( 'Read Only', 'formidable' ); ?>
111 </label>
112 </div>
113 <?php
114 }
115
116 do_action( 'frm_field_options_form_top', $field, $display, $values );
117 ?>
118 </div>
119
120 <?php
121 if ( $display['range'] ) {
122 include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/number-range.php';
123 }
124
125 $field_obj->show_primary_options( compact( 'field', 'display', 'values' ) );
126
127 if ( $display['format'] ) {
128 include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/format-dropdown.php';
129 FrmFieldsController::show_format_option( $field, true );
130 }
131 ?>
132
133 <?php if ( $display['css'] ) { ?>
134 <p class="frm-has-modal">
135 <label for="frm_classes_<?php echo esc_attr( $field['id'] ); ?>" class="frm_help" title="<?php esc_attr_e( 'Add a CSS class to the field container. Use our predefined classes to align multiple fields in single row.', 'formidable' ); ?>">
136 <?php esc_html_e( 'CSS Layout Classes', 'formidable' ); ?>
137 </label>
138 <span class="frm-with-right-icon">
139 <?php
140 FrmAppHelper::icon_by_class(
141 'frm_icon_font frm_more_horiz_solid_icon frm-show-inline-modal',
142 array(
143 'data-open' => 'frm-layout-classes-box',
144 'title' => esc_attr__( 'Toggle Options', 'formidable' ),
145 )
146 );
147 ?>
148 <input type="text" name="field_options[classes_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['classes'] ); ?>" class="frm_classes" id="frm_classes_<?php echo esc_attr( $field['id'] ); ?>" data-changeme="frm_field_id_<?php echo esc_attr( $field['id'] ); ?>" data-changeatt="class" data-sep=" " data-shortcode="0" />
149 </span>
150 </p>
151 <?php } ?>
152 </div>
153
154 <?php
155
156 $field_obj->show_field_choices( compact( 'field', 'display', 'values' ) );
157
158 if ( $display['clear_on_focus'] ) {
159 do_action( 'frm_extra_field_display_options', $field );
160 }
161
162 /**
163 * Fires after printing the primary options section of field.
164 *
165 * @since 5.0.04 Added `$display` and `$values`.
166 *
167 * @param array $field Field data.
168 * @param array{field_obj:FrmFieldType, display:array, values:array} $data
169 */
170 do_action( 'frm_before_field_options', $field, compact( 'field_obj', 'display', 'values' ) );
171
172 ?>
173 <h3 class="frm-collapsed" aria-expanded="false" tabindex="0" role="button" aria-label="<?php esc_attr_e( 'Collapsible Advanced Settings', 'formidable' ); ?>" aria-controls="collapsible-section">
174 <?php esc_html_e( 'Advanced', 'formidable' ); ?>
175 <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon', array( 'aria-hidden' => 'true' ) ); ?>
176 </h3>
177 <div class="frm_grid_container frm-collapse-me" role="group">
178
179 <?php if ( $display['default'] ) { ?>
180 <div class="frm-has-modal">
181 <?php if ( count( $default_value_types ) > 1 ) { ?>
182 <span class="frm-default-switcher">
183 <?php foreach ( $default_value_types as $link ) { ?>
184 <a href="#" title="<?php echo esc_attr( $link['title'] ); ?>" class="<?php echo esc_attr( $link['class'] ); ?>" data-toggleclass="frm_hidden frm-open"
185 <?php foreach ( $link['data'] as $data_key => $data_value ) { ?>
186 data-<?php echo esc_attr( $data_key ); ?>="<?php echo esc_attr( $data_value . ( substr( $data_value, -1 ) === '-' ? $field['id'] : '' ) ); ?>"
187 <?php } ?>
188 <?php if ( isset( $link['data']['frmshow'] ) ) { ?>
189 data-frmhide=".frm-inline-modal,.default-value-section-<?php echo esc_attr( $field['id'] ); ?>"
190 <?php } ?>
191 >
192 <?php FrmAppHelper::icon_by_class( $link['icon'] ); ?>
193 </a>
194 <?php } ?>
195 </span>
196 <?php } ?>
197 <?php $field_obj->show_default_value_setting( $field, $field_obj, $default_value_types, $display ); ?>
198 <?php do_action( 'frm_default_value_setting', compact( 'field', 'display', 'default_value_types' ) ); ?>
199 </div>
200 <?php
201 }//end if
202 ?>
203
204 <?php $field_obj->show_after_default( compact( 'field', 'display' ) ); ?>
205
206 <?php if ( $display['clear_on_focus'] ) { ?>
207 <p>
208 <label for="frm_placeholder_<?php echo esc_attr( $field['id'] ); ?>">
209 <?php esc_html_e( 'Placeholder Text', 'formidable' ); ?>
210 </label>
211 <?php
212 if ( $display['type'] === 'textarea' || $display['type'] === 'rte' ) {
213 ?>
214 <textarea name="field_options[placeholder_<?php echo esc_attr( $field['id'] ); ?>]" id="frm_placeholder_<?php echo esc_attr( $field['id'] ); ?>" rows="3" data-changeme="field_<?php echo esc_attr( $field['field_key'] ); ?>" data-changeatt="placeholder"><?php
215 echo FrmAppHelper::esc_textarea( $field['placeholder'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
216 ?></textarea>
217 <?php
218 } else {
219 ?>
220 <input type="text" name="field_options[placeholder_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['placeholder'] ); ?>" id="frm_placeholder_<?php echo esc_attr( $field['id'] ); ?>" data-changeme="field_<?php echo esc_attr( $field['field_key'] ); ?>" data-changeatt="placeholder" />
221 <?php
222 }
223 ?>
224 </p>
225 <?php } ?>
226
227 <?php
228 if ( $display['description'] ) {
229 include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-description.php';
230 }
231
232 /**
233 * Fires after displaying the field description in a form settings.
234 *
235 * @since 6.19
236 *
237 * @param array $args {
238 * Array containing the field data.
239 *
240 * @type array $field The field settings.
241 * @type array $display The display settings for the field.
242 * @type array $values The values associated with the field.
243 * }
244 */
245 do_action( 'frm_field_options_after_description', compact( 'field', 'display', 'values' ) );
246
247 // Field Size
248 if ( $display['size'] && ! in_array( $field['type'], array( 'select', 'data', 'time' ), true ) ) {
249 $display_max = $display['max'];
250 include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/pixels-wide.php';
251 }
252 ?>
253
254 <?php if ( $display['show_image'] ) { ?>
255 <p>
256 <label for="frm_show_image_<?php echo esc_attr( $field['id'] ); ?>">
257 <input type="checkbox" id="frm_show_image_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[show_image_<?php echo esc_attr( $field['id'] ); ?>]" value="1" <?php checked( $field['show_image'], 1 ); ?> />
258 <?php esc_html_e( 'If this URL points to an image, show to image on the entries listing page.', 'formidable' ); ?>
259 </label>
260 </p>
261 <?php } ?>
262
263 <?php if ( $display['captcha_size'] ) { ?>
264 <p class="frm6 frm_first frm_form_field">
265 <label for="field_options_captcha_size_<?php echo esc_attr( $field['id'] ); ?>" class="frm_help" title="<?php esc_attr_e( 'Set the size of the captcha field. The compact option is best if your form is in a small area.', 'formidable' ); ?>">
266 <?php esc_html_e( 'Captcha Size', 'formidable' ); ?>
267 </label>
268 <select name="field_options[captcha_size_<?php echo esc_attr( $field['id'] ); ?>]" id="field_options_captcha_size_<?php echo esc_attr( $field['id'] ); ?>">
269 <option value="normal" <?php selected( $field['captcha_size'], 'normal' ); ?>>
270 <?php esc_html_e( 'Normal', 'formidable' ); ?>
271 </option>
272 <option value="compact" <?php selected( $field['captcha_size'], 'compact' ); ?>>
273 <?php esc_html_e( 'Compact', 'formidable' ); ?>
274 </option>
275 </select>
276 </p>
277 <?php } ?>
278 <?php if ( $display['captcha_theme'] ) { ?>
279 <p class="frm6 frm_form_field">
280 <label for="captcha_theme_<?php echo esc_attr( $field['field_key'] ); ?>">
281 <?php esc_html_e( 'Captcha Theme', 'formidable' ); ?>
282 </label>
283 <select name="field_options[captcha_theme_<?php echo esc_attr( $field['id'] ); ?>]" id="captcha_theme_<?php echo esc_attr( $field['field_key'] ); ?>">
284 <option value="light" <?php selected( $field['captcha_theme'], 'light' ); ?>>
285 <?php esc_html_e( 'Light', 'formidable' ); ?>
286 </option>
287 <option value="dark" <?php selected( $field['captcha_theme'], 'dark' ); ?>>
288 <?php esc_html_e( 'Dark', 'formidable' ); ?>
289 </option>
290 <?php if ( $display['captcha_theme_auto_option'] ) { ?>
291 <option value="auto" <?php selected( $field['captcha_theme'], 'auto' ); ?>>
292 <?php esc_html_e( 'Auto', 'formidable' ); ?>
293 </option>
294 <?php } ?>
295 </select>
296 </p>
297 <?php } ?>
298
299 <?php do_action( 'frm_field_options', compact( 'field', 'display', 'values' ) ); ?>
300
301 <?php if ( $display['required'] ) { ?>
302 <p class="frm6 frm_form_field frm_required_details<?php echo esc_attr( $field['id'] . ( $field['required'] ? '' : ' frm_hidden' ) ); ?>">
303 <label for="field_options_required_indicator_<?php echo esc_attr( $field['id'] ); ?>">
304 <?php esc_html_e( 'Required Field Indicator', 'formidable' ); ?>
305 </label>
306 <input type="text" id="field_options_required_indicator_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[required_indicator_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['required_indicator'] ); ?>" />
307 </p>
308 <?php } ?>
309
310 <?php if ( $display['label_position'] ) { ?>
311 <p class="frm6 frm_form_field">
312 <label for="field_options_label_<?php echo esc_attr( $field['id'] ); ?>"><?php esc_html_e( 'Label Position', 'formidable' ); ?></label>
313 <select id="field_options_label_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[label_<?php echo esc_attr( $field['id'] ); ?>]">
314 <option value="" <?php selected( $field['label'], '' ); ?>>
315 <?php esc_html_e( 'Default', 'formidable' ); ?>
316 </option>
317 <?php
318 foreach ( FrmStylesHelper::get_single_label_positions( $field ) as $pos => $pos_label ) {
319 if ( ! $display['clear_on_focus'] && 'inside' === $pos ) {
320 // Don't allow inside labels for fields without placeholders.
321 continue;
322 }
323 FrmHtmlHelper::echo_dropdown_option(
324 $pos_label,
325 $pos === $field['label'],
326 array(
327 'value' => $pos,
328 )
329 );
330 }
331 if ( $field['type'] === 'divider' ) {
332 FrmHtmlHelper::echo_dropdown_option(
333 __( 'Center', 'formidable' ),
334 'center' === $field['label'],
335 array(
336 'value' => 'center',
337 )
338 );
339 }
340 ?>
341 </select>
342 </p>
343 <?php
344 }//end if
345 ?>
346
347 <p class="frm6 frm_form_field">
348 <label for="field_options_field_key_<?php echo esc_attr( $field['id'] ); ?>" class="frm_help" title="<?php esc_attr_e( 'The field key can be used as an alternative to the field ID in many cases.', 'formidable' ); ?>">
349 <?php esc_html_e( 'Field Key', 'formidable' ); ?>
350 </label>
351 <input type="text" name="field_options[field_key_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['field_key'] ); ?>" id="field_options_field_key_<?php echo esc_attr( $field['id'] ); ?>"/>
352 </p>
353
354 <?php if ( count( $field_types ) > 1 ) { ?>
355 <p class="frm6 frm_form_field">
356 <label for="field_options_type_<?php echo esc_attr( $field['id'] ); ?>">
357 <?php esc_html_e( 'Field Type', 'formidable' ); ?>
358 </label>
359 <select name="field_options[type_<?php echo esc_attr( $field['id'] ); ?>]" id="field_options_type_<?php echo esc_attr( $field['id'] ); ?>">
360 <?php
361 foreach ( $field_types as $fkey => $ftype ) {
362 // We need to avoid the word "select" in POST requests.
363 // When "dropdown" is sent as a type value, we'll map it back to "select" with PHP.
364 $type_option_value = 'select' === $fkey ? 'dropdown' : $fkey;
365 $type_option_params = array( 'value' => $type_option_value );
366 if ( array_key_exists( $fkey, $disabled_fields ) ) {
367 $type_option_params['disabled'] = 'disabled';
368 }
369
370 FrmHtmlHelper::echo_dropdown_option(
371 is_array( $ftype ) ? $ftype['name'] : $ftyp,
372 $fkey === $field['type'],
373 $type_option_params
374 );
375 unset( $fkey, $ftype, $type_option_value, $type_option_params );
376 }
377 ?>
378 </select>
379 </p>
380 <?php } else { ?>
381 <input type="hidden" id="field_options_type_<?php echo esc_attr( $field['id'] ); ?>" value="<?php echo esc_attr( $field['type'] ); ?>" />
382 <?php
383 }//end if
384 ?>
385
386 <table class="form-table frm-mt-0">
387 <?php
388 $field_obj->show_options( $field, $display, $values );
389 do_action( 'frm_field_options_form', $field, $display, $values );
390 ?>
391 </table>
392 </div>
393
394 <?php if ( $display['required'] || $display['invalid'] || $display['unique'] || $display['conf_field'] ) { ?>
395 <?php
396 $hidden_invalid = FrmField::is_field_type( $field, 'text' ) && ! FrmField::is_option_true( $field, 'format' ) && FrmField::is_option_empty( $field, 'max' );
397 $has_validation = ( ( $display['invalid'] && ! $hidden_invalid ) || $field['required'] || FrmField::is_option_true( $field, 'unique' ) || FrmField::is_option_true( $field, 'conf_field' ) );
398 ?>
399 <div class="frm_validation_msg <?php echo esc_attr( $has_validation ? '' : 'frm_hidden' ); ?>">
400 <h3 class="frm-collapsed" aria-expanded="false" tabindex="0" role="button" aria-label="<?php esc_attr_e( 'Collapsible Validation Messages Settings', 'formidable' ); ?>" aria-controls="collapsible-section">
401 <?php
402 esc_html_e( 'Validation Messages', 'formidable' );
403 FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon', array( 'aria-hidden' => 'true' ) );
404 ?>
405 </h3>
406
407 <div class="frm_validation_box frm-collapse-me" role="group">
408 <?php if ( $display['required'] ) { ?>
409 <p class="frm_required_details<?php echo esc_attr( $field['id'] . ( $field['required'] ? '' : ' frm_hidden' ) ); ?>">
410 <label for="field_options_blank_<?php echo esc_attr( $field['id'] ); ?>">
411 <?php esc_html_e( 'Required', 'formidable' ); ?>
412 </label>
413 <input type="text" name="field_options[blank_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['blank'] ); ?>" id="field_options_blank_<?php echo esc_attr( $field['id'] ); ?>" />
414 </p>
415 <?php } ?>
416
417 <?php if ( $display['invalid'] ) { ?>
418 <p class="frm_invalid_msg<?php echo esc_attr( $field['id'] . ( $hidden_invalid ? ' frm_hidden' : '' ) ); ?>">
419 <label for="field_options_invalid_<?php echo esc_attr( $field['id'] ); ?>">
420 <?php esc_html_e( 'Invalid Format', 'formidable' ); ?>
421 </label>
422 <input type="text" name="field_options[invalid_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['invalid'] ); ?>" id="field_options_invalid_<?php echo esc_attr( $field['id'] ); ?>" />
423 </p>
424 <?php
425 }
426
427 if ( $display['unique'] ) {
428 ?>
429 <p class="frm_unique_details<?php echo esc_attr( $field['id'] . ( $field['unique'] ? '' : ' frm_hidden' ) ); ?>">
430 <label for="field_options_unique_msg_<?php echo esc_attr( $field['id'] ); ?>">
431 <?php esc_html_e( 'Unique', 'formidable' ); ?>
432 </label>
433 <input type="text" name="field_options[unique_msg_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['unique_msg'] ); ?>" id="field_options_unique_msg_<?php echo esc_attr( $field['id'] ); ?>" />
434 </p>
435 <?php
436 }
437
438 if ( $display['conf_field'] ) {
439 ?>
440 <p class="frm_conf_details<?php echo esc_attr( $field['id'] . ( $field['conf_field'] ? '' : ' frm_hidden' ) ); ?>">
441 <label for="field_options_conf_msg_<?php echo esc_attr( $field['id'] ); ?>">
442 <?php esc_html_e( 'Confirmation', 'formidable' ); ?>
443 </label>
444 <input type="text" name="field_options[conf_msg_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['conf_msg'] ); ?>" id="field_options_conf_msg_<?php echo esc_attr( $field['id'] ); ?>" />
445 </p>
446 <?php
447 }
448 ?>
449 </div>
450 </div>
451 <?php
452 }//end if
453 ?>
454
455 <?php do_action( 'frm_after_field_options', compact( 'field', 'display', 'values' ) ); ?>
456
457 <?php if ( $display['conf_field'] ) { ?>
458 <input type="hidden" name="field_options[conf_desc_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['conf_desc'] ); ?>" />
459 <?php } ?>
460 </div>
461