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

169 lines 7.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 <?php if ( ! $values['is_template'] ) { ?>
33 <?php $first_h3 = ''; ?>
34
35 <?php if ( has_action( 'frm_settings_buttons' ) ) { ?>
36 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
37 <?php esc_html_e( 'Form Settings', 'formidable' ); ?>
38 </h3>
39 <div class="misc-pub-section">
40 <?php do_action( 'frm_settings_buttons', $values ); ?>
41 <div class="clear"></div>
42 </div>
43 <?php $first_h3 = ''; ?>
44 <?php } ?>
45 <?php } ?>
46
47 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
48 <?php esc_html_e( 'On Submit', 'formidable' ); ?>
49 <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>
50 </h3>
51
52 <!--On Submit Section-->
53
54 <p class="frm4 frm_form_field">
55 <select name="options[success_action]" id="success_action">
56 <option value="message" <?php selected( $values['success_action'], 'message' ); ?>>
57 <?php esc_html_e( 'Show Message', 'formidable' ); ?>
58 </option>
59 <option value="redirect" <?php selected( $values['success_action'], 'redirect' ); ?>>
60 <?php esc_html_e( 'Redirect to URL', 'formidable' ); ?>
61 </option>
62 <option value="page" <?php selected( $values['success_action'], 'page' ); ?>>
63 <?php esc_html_e( 'Show Page Content', 'formidable' ); ?>
64 </option>
65 </select>
66 </p>
67 <p class="frm8 frm_form_field">
68 <span class="frm_has_shortcodes success_action_redirect_box success_action_box<?php echo ( $values['success_action'] == 'redirect' ) ? '' : ' frm_hidden'; ?>">
69 <input type="text" name="options[success_url]" id="success_url" value="<?php echo esc_attr( isset( $values['success_url'] ) ? $values['success_url'] : '' ); ?>" placeholder="http://example.com" />
70 </span>
71
72 <span class="success_action_page_box success_action_box<?php echo esc_attr( $values['success_action'] === 'page' ? '' : ' frm_hidden' ); ?>">
73
74 <?php
75 FrmAppHelper::maybe_autocomplete_pages_options(
76 array(
77 'field_name' => 'options[success_page_id]',
78 'page_id' => isset( $values['success_page_id'] ) ? $values['success_page_id'] : '',
79 'placeholder' => __( 'Select a Page', 'formidable' ),
80 )
81 );
82 ?>
83 </span>
84 </p>
85
86 <p class="frm_show_form_opt success_action_message_box success_action_box<?php echo esc_attr( $values['success_action'] == 'message' ? '' : ' frm_hidden' ); ?>">
87 <label for="show_form" class="frm_inline_block">
88 <input type="checkbox" name="options[show_form]" id="show_form" value="1" <?php checked( $values['show_form'], 1 ); ?> />
89 <?php esc_html_e( 'Show the form with the confirmation message', 'formidable' ); ?>
90 </label>
91 </p>
92
93 <p class="frm8 frm_form_field">
94 <label for="no_save" class="frm_inline_block">
95 <input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked( $values['no_save'], 1 ); ?> />
96 <?php esc_html_e( 'Do not store entries submitted from this form', 'formidable' ); ?>
97 </label>
98 </p>
99
100 <?php
101 is_callable( 'self::render_spam_settings' ) && self::render_spam_settings( $values );
102 FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' );
103 ?>
104
105 <!--AJAX Section-->
106 <h3><?php esc_html_e( 'AJAX', 'formidable' ); ?>
107 <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>
108 </h3>
109
110 <table class="form-table">
111 <tr>
112 <td>
113 <label for="ajax_load" class="frm_inline_block">
114 <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' ); ?>
115 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ); ?>"></span>
116 </label>
117 </td>
118 </tr>
119 <?php do_action( 'frm_add_form_ajax_options', $values ); ?>
120 <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?>
121 <tr>
122 <td>
123 <label data-upgrade="<?php esc_attr_e( 'AJAX Form Submissions', 'formidable' ); ?>" data-medium="ajax" data-message="<?php esc_attr_e( 'Want to submit forms without reloading the page?', 'formidable' ); ?>">
124 <input type="checkbox" disabled="disabled" />
125 <span class="frm_noallow"><?php esc_html_e( 'Submit this form with AJAX', 'formidable' ); ?></span>
126 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Submit the form without refreshing the page.', 'formidable' ); ?>"></span>
127 </label>
128 </td>
129 </tr>
130 <?php } ?>
131 <tr>
132 <td>
133 <label for="js_validate" class="frm_inline_block">
134 <input type="checkbox" name="options[js_validate]" id="js_validate" value="1" <?php checked( $values['js_validate'], 1 ); ?> />
135 <?php esc_html_e( 'Validate this form with javascript', 'formidable' ); ?>
136 <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>
137 </label>
138 </td>
139 </tr>
140 </table>
141
142 <!--Permissions Section-->
143 <?php do_action( 'frm_add_form_perm_options', $values ); ?>
144
145 <!--Message Section-->
146 <h3 id="frm_messages_header" class="<?php echo esc_attr( ( ( isset( $values['edit_action'] ) && $values['edit_action'] === 'message' && isset( $values['editable'] ) && $values['editable'] == 1 ) || $values['success_action'] === 'message' || isset( $values['save_draft'] ) && $values['save_draft'] == 1 ) ? '' : 'frm_hidden' ); ?>">
147 <?php esc_html_e( 'Messages', 'formidable' ); ?>
148 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set up your confirmation messages.', 'formidable' ); ?>" ></span>
149 </h3>
150 <table class="form-table frm-fields">
151 <tr class="success_action_message_box success_action_box<?php echo esc_attr( $values['success_action'] === 'message' ? '' : ' frm_hidden' ); ?>">
152 <td class="frm_has_shortcodes frm_has_textarea">
153 <label for="success_msg"><?php esc_html_e( 'On Submit', 'formidable' ); ?></label>
154 <textarea id="success_msg" name="options[success_msg]" cols="50" rows="2" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['success_msg'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></textarea>
155 </td>
156 </tr>
157 <?php do_action( 'frm_add_form_msg_options', $values ); ?>
158 </table>
159
160 <!--Misc Section-->
161 <?php if ( has_action( 'frm_additional_form_options' ) ) { ?>
162 <h3><?php esc_html_e( 'Miscellaneous', 'formidable' ); ?></h3>
163 <table class="form-table">
164 <?php do_action( 'frm_additional_form_options', $values ); ?>
165 </table>
166 <?php } ?>
167
168 </div>
169