PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.28
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.28
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 / default-value-setting.php

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

32 lines 1.3 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 <p
7 class="frm-has-modal frm-default-value-wrapper default-value-section-<?php echo esc_attr( $field['id'] ); ?>"
8 <?php $field_obj->echo_field_default_setting_attributes( $field ); ?>
9 id="default-value-for-<?php echo esc_attr( $field['id'] ); ?>"
10 >
11 <label class="frm-force-flex frm-gap-xs frm-items-center" for="frm_default_value_<?php echo esc_attr( $field['id'] ); ?>">
12 <span><?php esc_html_e( 'Default Value', 'formidable' ); ?></span>
13 <?php FrmAppHelper::tooltip_icon( __( 'Pre-fill your field with this value. Users can modify it unless the field is read-only.', 'formidable' ), array( 'class' => 'frm-flex' ) ); ?>
14 </label>
15
16 <span class="frm-flex-col frm-with-right-icon">
17 <?php
18 if ( ! empty( $display['default_value'] ) ) {
19 $default_name = 'field_options[dyn_default_value_' . $field['id'] . ']';
20 $default_value = $field['dyn_default_value'] ?? '';
21 } else {
22 $default_name = 'default_value_' . $field['id'];
23 $default_value = $field['default_value'];
24 }
25
26 $field_obj->default_value_to_string( $default_value );
27 $field_obj->show_default_value_field( $field, $default_name, $default_value );
28 $field_obj->display_smart_values_modal_trigger_icon( $field );
29 ?>
30 </span>
31 </p>
32