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

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