PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.2
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-forms / settings-advanced.php

settings-advanced.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.2, at classes/views/frm-forms/settings-advanced.php

155 lines 6.0 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 class="howto">
7 <?php esc_html_e( 'Modify the basic form settings here.', 'formidable' ); ?>
8 </p>
9
10 <div class="frm_grid_container">
11 <p class="frm6 frm_form_field">
12 <label for="frm_form_name">
13 <?php esc_html_e( 'Form Title', 'formidable' ); ?>
14 </label>
15 <input type="text" id="frm_form_name" name="name" value="<?php echo esc_attr( $values['name'] ); ?>" />
16 </p>
17
18 <p class="frm6 frm_form_field">
19 <label for="frm_form_key">
20 <?php esc_html_e( 'Form Key', 'formidable' ); ?>
21 </label>
22 <input type="text" id="frm_form_key" name="form_key" value="<?php echo esc_attr( $values['form_key'] ); ?>" />
23 </p>
24
25 <p>
26 <label for="frm_form_description">
27 <?php esc_html_e( 'Form Description', 'formidable' ); ?>
28 </label>
29 <textarea id="frm_form_description" name="description" cols="50" rows="4"><?php echo FrmAppHelper::esc_textarea( $values['description'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></textarea>
30 </p>
31
32 <p class="frm8 frm_form_field">
33 <label for="show_title" class="frm_inline_block">
34 <input type="checkbox" name="options[show_title]" id="show_title" value="1" <?php checked( $values['show_title'], 1 ); ?> />
35 <?php esc_html_e( 'Show the form title', 'formidable' ); ?>
36 </label>
37 </p>
38
39 <p class="frm8 frm_form_field">
40 <label for="show_description" class="frm_inline_block">
41 <input type="checkbox" name="options[show_description]" id="show_description" value="1" <?php checked( $values['show_description'], 1 ); ?> />
42 <?php esc_html_e( 'Show the form description', 'formidable' ); ?>
43 </label>
44 </p>
45
46 <?php if ( ! $values['is_template'] ) { ?>
47 <?php $first_h3 = ''; ?>
48
49 <?php if ( has_action( 'frm_settings_buttons' ) ) { ?>
50 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
51 <?php esc_html_e( 'Form Settings', 'formidable' ); ?>
52 </h3>
53 <div class="misc-pub-section">
54 <?php do_action( 'frm_settings_buttons', $values ); ?>
55 <div class="clear"></div>
56 </div>
57 <?php $first_h3 = ''; ?>
58 <?php } ?>
59 <?php } ?>
60
61 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
62 <?php esc_html_e( 'On Submit', 'formidable' ); ?>
63 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Choose what will happen after the user submits this form.', 'formidable' ); ?>"></span>
64 </h3>
65
66 <input type="hidden" name="options[on_submit_migrated]" value="<?php echo empty( $values['on_submit_migrated'] ) ? '' : intval( $values['on_submit_migrated'] ); ?>" />
67
68 <?php
69 // Show a temporary message. This can be removed after the date is passed.
70 if ( time() < strtotime( '2023-03-07' ) ) {
71 FrmTipsHelper::show_tip(
72 array(
73 'tip' => __( 'New: The form confirmation settings have moved.', 'formidable' ),
74 'call' => __( 'Go to the Form Actions', 'formidable' ),
75 'page' => add_query_arg( 't', 'email_settings' ),
76 ),
77 'p'
78 );
79 }
80 ?>
81
82 <p class="frm8 frm_form_field">
83 <label for="no_save" class="frm_inline_block">
84 <input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked( $values['no_save'], 1 ); ?> />
85 <?php esc_html_e( 'Do not store entries submitted from this form', 'formidable' ); ?>
86 </label>
87 </p>
88
89 <?php
90 is_callable( 'FrmFormsController::render_spam_settings' ) && FrmFormsController::render_spam_settings( $values );
91 FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' );
92 ?>
93
94 <!--AJAX Section-->
95 <h3><?php esc_html_e( 'AJAX', 'formidable' ); ?>
96 <span class="frm_help frm_icon_font frm_tooltip_icon" data-placement="right" title="<?php esc_attr_e( 'Make stuff happen in the background without a page refresh', 'formidable' ); ?>" ></span>
97 </h3>
98
99 <table class="form-table">
100 <tr>
101 <td>
102 <label for="ajax_load" class="frm_inline_block">
103 <input type="checkbox" name="options[ajax_load]" id="ajax_load" value="1"<?php echo ( $values['ajax_load'] ) ? ' checked="checked"' : ''; ?> /> <?php esc_html_e( 'Load and save form builder page with AJAX', 'formidable' ); ?>
104 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ); ?>"></span>
105 </label>
106 </td>
107 </tr>
108 <?php do_action( 'frm_add_form_ajax_options', $values ); ?>
109 <?php if ( ! FrmFormsHelper::should_use_pro_for_ajax_submit() ) { ?>
110 <tr>
111 <td>
112 <label for="ajax_submit">
113 <input type="checkbox" name="options[ajax_submit]" id="ajax_submit" value="1" <?php checked( $values['ajax_submit'], 1 ); ?> />
114 <?php esc_html_e( 'Submit this form with AJAX', 'formidable' ); ?>
115 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Submit the form without refreshing the page.', 'formidable' ); ?>"></span>
116 </label>
117 </td>
118 </tr>
119 <?php } ?>
120 <tr>
121 <td>
122 <label for="js_validate" class="frm_inline_block">
123 <input type="checkbox" name="options[js_validate]" id="js_validate" value="1" <?php checked( $values['js_validate'], 1 ); ?> />
124 <?php esc_html_e( 'Validate this form with javascript', 'formidable' ); ?>
125 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Required fields, email format, and number format can be checked instantly in your browser. You may want to turn this option off if you have any customizations to remove validation messages on certain fields.', 'formidable' ); ?>" data-container="body"></span>
126 </label>
127 </td>
128 </tr>
129 </table>
130
131 <!--Permissions Section-->
132 <?php do_action( 'frm_add_form_perm_options', $values ); ?>
133
134 <?php
135 /*
136 * We keep this section to make the frm_add_form_msg_options hook still work after we moved the Success message option
137 * to the On Submit action, and moved the Draft message option to the below of its checkbox.
138 */
139 if ( has_action( 'frm_add_form_msg_options' ) ) :
140 ?>
141 <table class="form-table frm-fields">
142 <?php do_action( 'frm_add_form_msg_options', $values ); ?>
143 </table>
144 <?php endif; ?>
145
146 <!--Misc Section-->
147 <?php if ( has_action( 'frm_additional_form_options' ) ) { ?>
148 <h3><?php esc_html_e( 'Miscellaneous', 'formidable' ); ?></h3>
149 <table class="form-table">
150 <?php do_action( 'frm_additional_form_options', $values ); ?>
151 </table>
152 <?php } ?>
153
154 </div>
155