PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.32
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.32
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.32, at classes/views/frm-forms/settings-advanced.php

156 lines 5.6 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
47 /**
48 * Fires after the form description field.
49 *
50 * @since 6.18
51 *
52 * @param array $values The form values.
53 */
54 do_action( 'frm_settings_after_form_description', $values );
55
56 if ( ! $values['is_template'] ) {
57 $first_h3 = '';
58
59 if ( has_action( 'frm_settings_buttons' ) ) {
60 ?>
61 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
62 <?php esc_html_e( 'Form Settings', 'formidable' ); ?>
63 </h3>
64 <div class="misc-pub-section">
65 <?php do_action( 'frm_settings_buttons', $values ); ?>
66 <div class="clear"></div>
67 </div>
68 <?php
69 $first_h3 = '';
70 }
71 }
72 ?>
73
74 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
75 <?php esc_html_e( 'On Submit', 'formidable' ); ?>
76 <?php FrmAppHelper::tooltip_icon( __( 'Choose what will happen after the user submits this form.', 'formidable' ) ); ?>
77 </h3>
78
79 <input type="hidden" name="options[on_submit_migrated]" value="<?php echo ! empty( $values['on_submit_migrated'] ) ? intval( $values['on_submit_migrated'] ) : ''; ?>" />
80
81 <p class="frm8 frm_form_field">
82 <label for="no_save" class="frm_inline_block">
83 <input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked( $values['no_save'], 1 ); ?> />
84 <?php esc_html_e( 'Do not store entries submitted from this form', 'formidable' ); ?>
85 </label>
86 </p>
87
88 <?php
89 if ( is_callable( 'FrmFormsController::render_spam_settings' ) ) {
90 FrmFormsController::render_spam_settings( $values );
91 }
92 FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' );
93 ?>
94
95 <!--AJAX Section-->
96 <h3><?php esc_html_e( 'AJAX', 'formidable' ); ?>
97 <?php FrmAppHelper::tooltip_icon( __( 'Make stuff happen in the background without a page refresh', 'formidable' ), array( 'data-placement' => 'right' ) ); ?>
98 </h3>
99
100 <table class="form-table">
101 <tr>
102 <td>
103 <label for="ajax_load" class="frm_inline_block">
104 <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' ); ?>
105 <?php FrmAppHelper::tooltip_icon( __( 'Recommended for long forms.', 'formidable' ) ); ?>
106 </label>
107 </td>
108 </tr>
109 <?php do_action( 'frm_add_form_ajax_options', $values ); ?>
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 <?php FrmAppHelper::tooltip_icon( __( 'Submit the form without refreshing the page.', 'formidable' ) ); ?>
116 </label>
117 </td>
118 </tr>
119 <tr>
120 <td>
121 <label for="js_validate" class="frm_inline_block">
122 <input type="checkbox" name="options[js_validate]" id="js_validate" value="1" <?php checked( $values['js_validate'], 1 ); ?> />
123 <?php esc_html_e( 'Validate this form with javascript', 'formidable' ); ?>
124 <?php FrmAppHelper::tooltip_icon( __( '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' ), array( 'data-container' => 'body' ) ); ?>
125 </label>
126 </td>
127 </tr>
128 </table>
129
130 <input type="hidden" name="options[custom_style]" value="<?php echo esc_attr( $values['custom_style'] ); ?>" />
131
132 <!--Permissions Section-->
133 <?php
134 do_action( 'frm_add_form_perm_options', $values );
135
136 /*
137 * We keep this section to make the frm_add_form_msg_options hook still work after we moved the Success message option
138 * to the On Submit action, and moved the Draft message option to the below of its checkbox.
139 */
140 if ( has_action( 'frm_add_form_msg_options' ) ) :
141 ?>
142 <table class="form-table frm-fields">
143 <?php do_action( 'frm_add_form_msg_options', $values ); ?>
144 </table>
145 <?php endif; ?>
146
147 <!--Misc Section-->
148 <?php if ( has_action( 'frm_additional_form_options' ) ) { ?>
149 <h3><?php esc_html_e( 'Miscellaneous', 'formidable' ); ?></h3>
150 <table class="form-table">
151 <?php do_action( 'frm_additional_form_options', $values ); ?>
152 </table>
153 <?php } ?>
154
155 </div>
156