Version Description
- Deprecated the option to disable CSS Grids in form layouts.
- Fix: JavaScript validation was failing to validate for many fields with custom patterns because extra conflicting HTML was sometimes being added to the check.
- Fix: Field dropdowns are now more accessible and it should be easier to delete and duplicate fields with a screen reader.
- Fix: Updated form padding on admin page so forms with custom padding don't appear small in the back end.
Download this release
Release Info
Developer | formidableforms |
Plugin | Formidable Forms – Form Builder for WordPress |
Version | 5.0.05 |
Comparing to | |
See all releases |
Code changes from version 5.0.04 to 5.0.05
- classes/controllers/FrmAppController.php +1 -4
- classes/controllers/FrmFieldsController.php +10 -36
- classes/controllers/FrmInboxController.php +0 -19
- classes/helpers/FrmAppHelper.php +1 -1
- classes/helpers/FrmFormsHelper.php +7 -24
- classes/models/FrmField.php +41 -0
- classes/models/FrmSettings.php +1 -13
- classes/models/FrmUsage.php +0 -1
- classes/views/frm-forms/add_field.php +1 -1
- classes/views/frm-settings/general.php +0 -15
- css/_single_theme.css.php +1 -5
- css/custom_theme.css.php +0 -5
- css/frm_admin.css +12 -0
- css/frm_old_grids.css +1 -681
- formidable.php +1 -1
- js/formidable.js +5 -1
- js/formidable.min.js +35 -35
- js/formidable_admin.js +15 -9
- languages/formidable.pot +42 -57
- readme.txt +7 -7
classes/controllers/FrmAppController.php
CHANGED
@@ -478,10 +478,7 @@ class FrmAppController {
|
|
478 |
wp_enqueue_style( 'formidable-grids' );
|
479 |
wp_enqueue_style( 'formidable-dropzone' );
|
480 |
} else {
|
481 |
-
|
482 |
-
if ( empty( $settings->old_css ) ) {
|
483 |
-
wp_enqueue_style( 'formidable-grids' );
|
484 |
-
}
|
485 |
}
|
486 |
|
487 |
if ( 'formidable-entries' === $page ) {
|
478 |
wp_enqueue_style( 'formidable-grids' );
|
479 |
wp_enqueue_style( 'formidable-dropzone' );
|
480 |
} else {
|
481 |
+
wp_enqueue_style( 'formidable-grids' );
|
|
|
|
|
|
|
482 |
}
|
483 |
|
484 |
if ( 'formidable-entries' === $page ) {
|
classes/controllers/FrmFieldsController.php
CHANGED
@@ -112,40 +112,10 @@ class FrmFieldsController {
|
|
112 |
$field_id = FrmAppHelper::get_post_param( 'field_id', 0, 'absint' );
|
113 |
$form_id = FrmAppHelper::get_post_param( 'form_id', 0, 'absint' );
|
114 |
|
115 |
-
$
|
116 |
-
if ( ! $copy_field ) {
|
117 |
-
wp_die();
|
118 |
-
}
|
119 |
-
|
120 |
-
do_action( 'frm_duplicate_field', $copy_field, $form_id );
|
121 |
-
do_action( 'frm_duplicate_field_' . $copy_field->type, $copy_field, $form_id );
|
122 |
|
123 |
-
$
|
124 |
-
'
|
125 |
-
);
|
126 |
-
FrmFieldsHelper::fill_field( $values, $copy_field, $copy_field->form_id );
|
127 |
-
$values = apply_filters( 'frm_prepare_single_field_for_duplication', $values );
|
128 |
-
|
129 |
-
$field_id = FrmField::create( $values );
|
130 |
-
|
131 |
-
/**
|
132 |
-
* Fires after duplicating a field.
|
133 |
-
*
|
134 |
-
* @since 5.0.04
|
135 |
-
*
|
136 |
-
* @param array $args {
|
137 |
-
* The arguments.
|
138 |
-
*
|
139 |
-
* @type int $field_id New field ID.
|
140 |
-
* @type array $values Values before inserting.
|
141 |
-
* @type object $copy_field Copy field data.
|
142 |
-
* @type int $form_id Form ID.
|
143 |
-
* }
|
144 |
-
*/
|
145 |
-
do_action( 'frm_after_duplicate_field', compact( 'field_id', 'values', 'copy_field', 'form_id' ) );
|
146 |
-
|
147 |
-
if ( $field_id ) {
|
148 |
-
self::load_single_field( $field_id, $values );
|
149 |
}
|
150 |
|
151 |
wp_die();
|
@@ -780,9 +750,13 @@ class FrmFieldsController {
|
|
780 |
return false;
|
781 |
}
|
782 |
|
783 |
-
$error_body
|
784 |
-
|
785 |
-
|
|
|
|
|
|
|
|
|
786 |
return false;
|
787 |
}
|
788 |
|
112 |
$field_id = FrmAppHelper::get_post_param( 'field_id', 0, 'absint' );
|
113 |
$form_id = FrmAppHelper::get_post_param( 'form_id', 0, 'absint' );
|
114 |
|
115 |
+
$new_field = FrmField::duplicate_single_field( $field_id, $form_id );
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
+
if ( is_array( $new_field ) && ! empty( $new_field['field_id'] ) ) {
|
118 |
+
self::load_single_field( $new_field['field_id'], $new_field['values'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
}
|
120 |
|
121 |
wp_die();
|
750 |
return false;
|
751 |
}
|
752 |
|
753 |
+
$error_body = substr( $custom_html, $start + 10, $end - $start - 10 );
|
754 |
+
$default_html = array(
|
755 |
+
'<div class="frm_error" id="frm_error_field_[key]">[error]</div>',
|
756 |
+
'<div class="frm_error">[error]</div>',
|
757 |
+
);
|
758 |
+
|
759 |
+
if ( in_array( $error_body, $default_html, true ) ) {
|
760 |
return false;
|
761 |
}
|
762 |
|
classes/controllers/FrmInboxController.php
CHANGED
@@ -14,8 +14,6 @@ class FrmInboxController {
|
|
14 |
public static function menu() {
|
15 |
$unread = self::get_notice_count();
|
16 |
add_submenu_page( 'formidable', 'Formidable | ' . __( 'Inbox', 'formidable' ), __( 'Inbox', 'formidable' ) . $unread, 'frm_change_settings', 'formidable-inbox', 'FrmInboxController::inbox' );
|
17 |
-
|
18 |
-
self::maybe_add_old_css_message();
|
19 |
}
|
20 |
|
21 |
/**
|
@@ -28,23 +26,6 @@ class FrmInboxController {
|
|
28 |
return $inbox->unread_html();
|
29 |
}
|
30 |
|
31 |
-
private static function maybe_add_old_css_message() {
|
32 |
-
$frm_settings = FrmAppHelper::get_settings();
|
33 |
-
if ( $frm_settings->old_css ) {
|
34 |
-
$inbox = new FrmInbox();
|
35 |
-
$inbox->add_message(
|
36 |
-
array(
|
37 |
-
'key' => 'old_css',
|
38 |
-
'subject' => 'The option to disable CSS Grids for form layouts is being removed.',
|
39 |
-
'message' => 'We\'ve got some awesome form layout features coming soon. These new layouts will require CSS grids, and will not be supported in Internet Explorer. If a visitor views your forms in IE, a single field will show in each row.<br><br>We recommend enabling CSS Grids in Global Settings and then checking your form layouts.',
|
40 |
-
'cta' => '<a href="' . esc_url( admin_url( 'admin.php?page=formidable-settings' ) ) . '" class="button-primary frm-button-primary">' . esc_html__( 'Go to Global Settings', 'formidable' ) . '</a>',
|
41 |
-
'icon' => 'frm_report_problem_icon',
|
42 |
-
'type' => 'news',
|
43 |
-
)
|
44 |
-
);
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
/**
|
49 |
* @since 4.06
|
50 |
*/
|
14 |
public static function menu() {
|
15 |
$unread = self::get_notice_count();
|
16 |
add_submenu_page( 'formidable', 'Formidable | ' . __( 'Inbox', 'formidable' ), __( 'Inbox', 'formidable' ) . $unread, 'frm_change_settings', 'formidable-inbox', 'FrmInboxController::inbox' );
|
|
|
|
|
17 |
}
|
18 |
|
19 |
/**
|
26 |
return $inbox->unread_html();
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
/**
|
30 |
* @since 4.06
|
31 |
*/
|
classes/helpers/FrmAppHelper.php
CHANGED
@@ -11,7 +11,7 @@ class FrmAppHelper {
|
|
11 |
/**
|
12 |
* @since 2.0
|
13 |
*/
|
14 |
-
public static $plug_version = '5.0.
|
15 |
|
16 |
/**
|
17 |
* @since 1.07.02
|
11 |
/**
|
12 |
* @since 2.0
|
13 |
*/
|
14 |
+
public static $plug_version = '5.0.05';
|
15 |
|
16 |
/**
|
17 |
* @since 1.07.02
|
classes/helpers/FrmFormsHelper.php
CHANGED
@@ -1179,33 +1179,16 @@ BEFORE_HTML;
|
|
1179 |
}
|
1180 |
|
1181 |
public static function grid_classes() {
|
1182 |
-
|
1183 |
-
'frm_half'
|
1184 |
-
|
1185 |
-
'
|
1186 |
-
'frm_two_thirds' => '2/3',
|
1187 |
-
|
1188 |
'frm_fourth' => '1/4',
|
1189 |
'frm_three_fourths' => '3/4',
|
|
|
|
|
|
|
1190 |
);
|
1191 |
-
|
1192 |
-
$frm_settings = FrmAppHelper::get_settings();
|
1193 |
-
if ( $frm_settings->old_css ) {
|
1194 |
-
$classes = array(
|
1195 |
-
'frm_sixth' => '1/6',
|
1196 |
-
'frm10' => '5/6',
|
1197 |
-
|
1198 |
-
'frm_full' => '100%',
|
1199 |
-
);
|
1200 |
-
} else {
|
1201 |
-
$classes = array(
|
1202 |
-
'frm_sixth' => '1/6',
|
1203 |
-
'frm10' => '5/6',
|
1204 |
-
'frm12' => '100%',
|
1205 |
-
);
|
1206 |
-
}
|
1207 |
-
|
1208 |
-
return array_merge( $base, $classes );
|
1209 |
}
|
1210 |
|
1211 |
/**
|
1179 |
}
|
1180 |
|
1181 |
public static function grid_classes() {
|
1182 |
+
return array(
|
1183 |
+
'frm_half' => '1/2',
|
1184 |
+
'frm_third' => '1/3',
|
1185 |
+
'frm_two_thirds' => '2/3',
|
|
|
|
|
1186 |
'frm_fourth' => '1/4',
|
1187 |
'frm_three_fourths' => '3/4',
|
1188 |
+
'frm_sixth' => '1/6',
|
1189 |
+
'frm10' => '5/6',
|
1190 |
+
'frm12' => '100%',
|
1191 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1192 |
}
|
1193 |
|
1194 |
/**
|
classes/models/FrmField.php
CHANGED
@@ -285,6 +285,47 @@ class FrmField {
|
|
285 |
}
|
286 |
}
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
public static function duplicate( $old_form_id, $form_id, $copy_keys = false, $blog_id = false ) {
|
289 |
global $frm_duplicate_ids;
|
290 |
|
285 |
}
|
286 |
}
|
287 |
|
288 |
+
/**
|
289 |
+
* Process the field duplication.
|
290 |
+
*
|
291 |
+
* @since 5.0.05
|
292 |
+
*/
|
293 |
+
public static function duplicate_single_field( $field_id, $form_id ) {
|
294 |
+
$copy_field = self::getOne( $field_id );
|
295 |
+
if ( ! $copy_field ) {
|
296 |
+
return false;
|
297 |
+
}
|
298 |
+
|
299 |
+
do_action( 'frm_duplicate_field', $copy_field, $form_id );
|
300 |
+
do_action( 'frm_duplicate_field_' . $copy_field->type, $copy_field, $form_id );
|
301 |
+
|
302 |
+
$values = array(
|
303 |
+
'id' => $copy_field->id,
|
304 |
+
);
|
305 |
+
FrmFieldsHelper::fill_field( $values, $copy_field, $copy_field->form_id );
|
306 |
+
$values = apply_filters( 'frm_prepare_single_field_for_duplication', $values );
|
307 |
+
|
308 |
+
$field_id = self::create( $values );
|
309 |
+
|
310 |
+
/**
|
311 |
+
* Fires after duplicating a field.
|
312 |
+
*
|
313 |
+
* @since 5.0.04
|
314 |
+
*
|
315 |
+
* @param array $args {
|
316 |
+
* The arguments.
|
317 |
+
*
|
318 |
+
* @type int $field_id New field ID.
|
319 |
+
* @type array $values Values before inserting.
|
320 |
+
* @type object $copy_field Copy field data.
|
321 |
+
* @type int $form_id Form ID.
|
322 |
+
* }
|
323 |
+
*/
|
324 |
+
do_action( 'frm_after_duplicate_field', compact( 'field_id', 'values', 'copy_field', 'form_id' ) );
|
325 |
+
|
326 |
+
return compact( 'field_id', 'values' );
|
327 |
+
}
|
328 |
+
|
329 |
public static function duplicate( $old_form_id, $form_id, $copy_keys = false, $blog_id = false ) {
|
330 |
global $frm_duplicate_ids;
|
331 |
|
classes/models/FrmSettings.php
CHANGED
@@ -251,22 +251,10 @@ class FrmSettings {
|
|
251 |
$this->re_lang = $params['frm_re_lang'];
|
252 |
$this->load_style = $params['frm_load_style'];
|
253 |
|
254 |
-
$
|
255 |
-
|
256 |
-
$checkboxes = array( 'mu_menu', 're_multi', 'use_html', 'jquery_css', 'accordion_js', 'fade_form', 'old_css', 'no_ips', 'tracking', 'admin_bar' );
|
257 |
foreach ( $checkboxes as $set ) {
|
258 |
$this->$set = isset( $params[ 'frm_' . $set ] ) ? $params[ 'frm_' . $set ] : 0;
|
259 |
}
|
260 |
-
|
261 |
-
$this->maybe_remove_old_css_inbox_message( $previous_old_css_setting, $this->old_css );
|
262 |
-
}
|
263 |
-
|
264 |
-
private function maybe_remove_old_css_inbox_message( $previous_setting, $new_setting ) {
|
265 |
-
$enabled_css_grid = $previous_setting && ! $new_setting;
|
266 |
-
if ( $enabled_css_grid ) {
|
267 |
-
$inbox = new FrmInbox();
|
268 |
-
$inbox->remove( 'old_css' );
|
269 |
-
}
|
270 |
}
|
271 |
|
272 |
private function update_roles( $params ) {
|
251 |
$this->re_lang = $params['frm_re_lang'];
|
252 |
$this->load_style = $params['frm_load_style'];
|
253 |
|
254 |
+
$checkboxes = array( 'mu_menu', 're_multi', 'use_html', 'jquery_css', 'accordion_js', 'fade_form', 'no_ips', 'tracking', 'admin_bar' );
|
|
|
|
|
255 |
foreach ( $checkboxes as $set ) {
|
256 |
$this->$set = isset( $params[ 'frm_' . $set ] ) ? $params[ 'frm_' . $set ] : 0;
|
257 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
}
|
259 |
|
260 |
private function update_roles( $params ) {
|
classes/models/FrmUsage.php
CHANGED
@@ -124,7 +124,6 @@ class FrmUsage {
|
|
124 |
$pass_settings = array(
|
125 |
'load_style',
|
126 |
'use_html',
|
127 |
-
'old_css',
|
128 |
'fade_form',
|
129 |
'jquery_css',
|
130 |
're_type',
|
124 |
$pass_settings = array(
|
125 |
'load_style',
|
126 |
'use_html',
|
|
|
127 |
'fade_form',
|
128 |
'jquery_css',
|
129 |
're_type',
|
classes/views/frm-forms/add_field.php
CHANGED
@@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
26 |
</a>
|
27 |
|
28 |
<div class="dropdown">
|
29 |
-
<a href="#" class="frm_bstooltip frm-hover-icon frm-dropdown-toggle dropdown-toggle" title="<?php esc_attr_e( 'More Options', 'formidable' ); ?>" data-toggle="dropdown" data-container="body">
|
30 |
<?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_thick_more_vert_icon' ); ?>
|
31 |
</a>
|
32 |
<ul class="frm-dropdown-menu" role="menu"></ul>
|
26 |
</a>
|
27 |
|
28 |
<div class="dropdown">
|
29 |
+
<a href="#" class="frm_bstooltip frm-hover-icon frm-dropdown-toggle dropdown-toggle" title="<?php esc_attr_e( 'More Options', 'formidable' ); ?>" data-toggle="dropdown" data-container="body" aria-expanded="false">
|
30 |
<?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_thick_more_vert_icon' ); ?>
|
31 |
</a>
|
32 |
<ul class="frm-dropdown-menu" role="menu"></ul>
|
classes/views/frm-settings/general.php
CHANGED
@@ -31,21 +31,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
31 |
</select>
|
32 |
</p>
|
33 |
|
34 |
-
<?php if ( $frm_settings->old_css ) { ?>
|
35 |
-
<p>
|
36 |
-
<label for="frm_old_css">
|
37 |
-
<input type="checkbox" id="frm_old_css" name="frm_old_css" value="1" <?php checked( $frm_settings->old_css, 1 ); ?> />
|
38 |
-
<?php esc_html_e( 'Do not use CSS Grids for form layouts', 'formidable' ); ?>
|
39 |
-
<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Form layouts built using CSS grids that are not fully supported by older browsers like Internet Explorer. Leave this box unchecked for your layouts to look best in current browsers, but show in a single column in older browsers.', 'formidable' ); ?>"></span>
|
40 |
-
|
41 |
-
<span class="frm_warning_style" role="alert">
|
42 |
-
<?php FrmAppHelper::icon_by_class( 'frmfont frm_alert_icon' ); ?>
|
43 |
-
<?php esc_html_e( 'Warning: This setting is deprecated. It will be removed when it is turned off.', 'formidable' ); ?>
|
44 |
-
</span>
|
45 |
-
</label>
|
46 |
-
</p>
|
47 |
-
<?php } ?>
|
48 |
-
|
49 |
<?php do_action( 'frm_style_general_settings', $frm_settings ); ?>
|
50 |
|
51 |
|
31 |
</select>
|
32 |
</p>
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
<?php do_action( 'frm_style_general_settings', $frm_settings ); ?>
|
35 |
|
36 |
|
css/_single_theme.css.php
CHANGED
@@ -128,11 +128,7 @@ if ( '' === $field_height || 'auto' === $field_height ) {
|
|
128 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container select,
|
129 |
<?php } ?>
|
130 |
.<?php echo esc_html( $style_class ); ?> .frm_left_container select{
|
131 |
-
<?php
|
132 |
-
height:auto<?php echo esc_html( $important ); ?>;
|
133 |
-
<?php } else { ?>
|
134 |
-
height:fit-content<?php echo esc_html( $important ); ?>;
|
135 |
-
<?php } ?>
|
136 |
}
|
137 |
<?php } ?>
|
138 |
|
128 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container select,
|
129 |
<?php } ?>
|
130 |
.<?php echo esc_html( $style_class ); ?> .frm_left_container select{
|
131 |
+
height:fit-content<?php echo esc_html( $important ); ?>;
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
<?php } ?>
|
134 |
|
css/custom_theme.css.php
CHANGED
@@ -1496,9 +1496,4 @@ select.frm_loading_lookup{
|
|
1496 |
}
|
1497 |
<?php
|
1498 |
|
1499 |
-
$frm_settings = FrmAppHelper::get_settings();
|
1500 |
-
if ( $frm_settings->old_css ) {
|
1501 |
-
readfile( dirname( __FILE__ ) . '/frm_old_grids.css' );
|
1502 |
-
}
|
1503 |
-
|
1504 |
echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok.
|
1496 |
}
|
1497 |
<?php
|
1498 |
|
|
|
|
|
|
|
|
|
|
|
1499 |
echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok.
|
css/frm_admin.css
CHANGED
@@ -26,6 +26,10 @@
|
|
26 |
--biggest-sidebar: 450px;
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
29 |
a, .widget .widget-top, .stuffbox h3, .frm-collapsed {
|
30 |
cursor: pointer;
|
31 |
text-decoration: none;
|
@@ -6765,6 +6769,14 @@ ul .frm_col_two {
|
|
6765 |
cursor: pointer;
|
6766 |
}
|
6767 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6768 |
#frm_field_group_controls .frm-dropdown-menu .frm_dropdown_li:hover,
|
6769 |
.frm-field-action-icons .frm-dropdown-menu .frm_dropdown_li:hover {
|
6770 |
background: #F6F7FB;
|
26 |
--biggest-sidebar: 450px;
|
27 |
}
|
28 |
|
29 |
+
.with_frm_style .frm_form_fields > fieldset {
|
30 |
+
--fieldset-padding: 15px 0;
|
31 |
+
}
|
32 |
+
|
33 |
a, .widget .widget-top, .stuffbox h3, .frm-collapsed {
|
34 |
cursor: pointer;
|
35 |
text-decoration: none;
|
6769 |
cursor: pointer;
|
6770 |
}
|
6771 |
|
6772 |
+
.frm-field-action-icons .frm-dropdown-menu .frm_dropdown_li .frmsvg {
|
6773 |
+
color: rgba(40, 47, 54, 0.85) !important;
|
6774 |
+
}
|
6775 |
+
|
6776 |
+
.frm-field-action-icons .frm-dropdown-menu .frm_dropdown_li a {
|
6777 |
+
padding: 3px 0;
|
6778 |
+
}
|
6779 |
+
|
6780 |
#frm_field_group_controls .frm-dropdown-menu .frm_dropdown_li:hover,
|
6781 |
.frm-field-action-icons .frm-dropdown-menu .frm_dropdown_li:hover {
|
6782 |
background: #F6F7FB;
|
css/frm_old_grids.css
CHANGED
@@ -1,681 +1 @@
|
|
1 |
-
|
2 |
-
clear:both;
|
3 |
-
}
|
4 |
-
|
5 |
-
.frm_form_field,
|
6 |
-
.frm_form_field.frm_inline_container,
|
7 |
-
.frm_form_field.frm_right_container,
|
8 |
-
.frm_form_field.frm_left_container{
|
9 |
-
width:auto;
|
10 |
-
}
|
11 |
-
|
12 |
-
.frm_inline_form .frm_form_field.form-field{
|
13 |
-
margin-right:2.5%;
|
14 |
-
display:inline-block;
|
15 |
-
}
|
16 |
-
|
17 |
-
.frm_inline_form .frm_submit{
|
18 |
-
display:inline-block;
|
19 |
-
}
|
20 |
-
|
21 |
-
.frm_form_field.frm2,
|
22 |
-
.frm_submit.frm2,
|
23 |
-
.frm_form_field.frm3,
|
24 |
-
.frm_submit.frm3,
|
25 |
-
.frm_form_field.frm4,
|
26 |
-
.frm_submit.frm4,
|
27 |
-
.frm_form_field.frm6,
|
28 |
-
.frm_submit.frm6,
|
29 |
-
.frm_form_field.frm8,
|
30 |
-
.frm_submit.frm8,
|
31 |
-
.frm_form_field.frm9,
|
32 |
-
.frm_submit.frm9,
|
33 |
-
.frm_form_field.frm10,
|
34 |
-
.frm_submit.frm10,
|
35 |
-
.frm_form_field.frm_right_half,
|
36 |
-
.frm_form_field.frm_right_third,
|
37 |
-
.frm_form_field.frm_right_two_thirds,
|
38 |
-
.frm_form_field.frm_right_fourth,
|
39 |
-
.frm_form_field.frm_right_fifth,
|
40 |
-
.frm_form_field.frm_right_inline,
|
41 |
-
.frm_form_field.frm_last_half,
|
42 |
-
.frm_form_field.frm_last_third,
|
43 |
-
.frm_form_field.frm_last_two_thirds,
|
44 |
-
.frm_form_field.frm_last_fourth,
|
45 |
-
.frm_form_field.frm_last_fifth,
|
46 |
-
.frm_form_field.frm_last_sixth,
|
47 |
-
.frm_form_field.frm_last_seventh,
|
48 |
-
.frm_form_field.frm_last_eighth,
|
49 |
-
.frm_form_field.frm_last_inline,
|
50 |
-
.frm_form_field.frm_last,
|
51 |
-
.frm_form_field.frm_half,
|
52 |
-
.frm_submit.frm_half,
|
53 |
-
.frm_form_field.frm_third,
|
54 |
-
.frm_submit.frm_third,
|
55 |
-
.frm_form_field.frm_two_thirds,
|
56 |
-
.frm_form_field.frm_fourth,
|
57 |
-
.frm_submit.frm_fourth,
|
58 |
-
.frm_form_field.frm_three_fourths,
|
59 |
-
.frm_form_field.frm_fifth,
|
60 |
-
.frm_submit.frm_fifth,
|
61 |
-
.frm_form_field.frm_two_fifths,
|
62 |
-
.frm_form_field.frm_three_fifths,
|
63 |
-
.frm_form_field.frm_four_fifths,
|
64 |
-
.frm_form_field.frm_sixth,
|
65 |
-
.frm_submit.frm_sixth,
|
66 |
-
.frm_form_field.frm_seventh,
|
67 |
-
.frm_submit.frm_seventh,
|
68 |
-
.frm_form_field.frm_eighth,
|
69 |
-
.frm_submit.frm_eighth,
|
70 |
-
.frm_form_field.frm_inline,
|
71 |
-
.frm_submit.frm_inline{
|
72 |
-
clear:none;
|
73 |
-
float:left;
|
74 |
-
margin-left:2.5%;
|
75 |
-
}
|
76 |
-
|
77 |
-
.frm_form_field.frm_left_half,
|
78 |
-
.frm_form_field.frm_left_third,
|
79 |
-
.frm_form_field.frm_left_two_thirds,
|
80 |
-
.frm_form_field.frm_left_fourth,
|
81 |
-
.frm_form_field.frm_left_fifth,
|
82 |
-
.frm_form_field.frm_left_inline,
|
83 |
-
.frm_form_field.frm_first_half,
|
84 |
-
.frm_form_field.frm_first_third,
|
85 |
-
.frm_form_field.frm_first_two_thirds,
|
86 |
-
.frm_form_field.frm_first_fourth,
|
87 |
-
.frm_form_field.frm_first_fifth,
|
88 |
-
.frm_form_field.frm_first_sixth,
|
89 |
-
.frm_form_field.frm_first_seventh,
|
90 |
-
.frm_form_field.frm_first_eighth,
|
91 |
-
.frm_form_field.frm_first_inline,
|
92 |
-
.frm_form_field.frm_first{
|
93 |
-
clear:left;
|
94 |
-
float:left;
|
95 |
-
margin-left:0;
|
96 |
-
}
|
97 |
-
|
98 |
-
.frm_form_field.frm6,
|
99 |
-
.frm_submit.frm6,
|
100 |
-
.frm_form_field.frm_left_half,
|
101 |
-
.frm_form_field.frm_right_half,
|
102 |
-
.frm_form_field.frm_first_half,
|
103 |
-
.frm_form_field.frm_last_half,
|
104 |
-
.frm_form_field.frm_half,
|
105 |
-
.frm_submit.frm_half{
|
106 |
-
width:48.75%;
|
107 |
-
}
|
108 |
-
|
109 |
-
.frm_form_field.frm4,
|
110 |
-
.frm_submit.frm4,
|
111 |
-
.frm_form_field.frm_left_third,
|
112 |
-
.frm_form_field.frm_third,
|
113 |
-
.frm_submit.frm_third,
|
114 |
-
.frm_form_field.frm_right_third,
|
115 |
-
.frm_form_field.frm_first_third,
|
116 |
-
.frm_form_field.frm_last_third{
|
117 |
-
width:31.66%;
|
118 |
-
}
|
119 |
-
|
120 |
-
.frm_form_field.frm8,
|
121 |
-
.frm_submit.frm8,
|
122 |
-
.frm_form_field.frm_left_two_thirds,
|
123 |
-
.frm_form_field.frm_right_two_thirds,
|
124 |
-
.frm_form_field.frm_first_two_thirds,
|
125 |
-
.frm_form_field.frm_last_two_thirds,
|
126 |
-
.frm_form_field.frm_two_thirds{
|
127 |
-
width:65.82%;
|
128 |
-
}
|
129 |
-
|
130 |
-
.frm_form_field.frm3,
|
131 |
-
.frm_submit.frm3,
|
132 |
-
.frm_form_field.frm_left_fourth,
|
133 |
-
.frm_form_field.frm_fourth,
|
134 |
-
.frm_submit.frm_fourth,
|
135 |
-
.frm_form_field.frm_right_fourth,
|
136 |
-
.frm_form_field.frm_first_fourth,
|
137 |
-
.frm_form_field.frm_last_fourth{
|
138 |
-
width:23.12%;
|
139 |
-
}
|
140 |
-
|
141 |
-
.frm_form_field.frm9,
|
142 |
-
.frm_form_field.frm_three_fourths{
|
143 |
-
width:74.36%;
|
144 |
-
}
|
145 |
-
|
146 |
-
.frm_form_field.frm_left_fifth,
|
147 |
-
.frm_form_field.frm_fifth,
|
148 |
-
.frm_submit.frm_fifth,
|
149 |
-
.frm_form_field.frm_right_fifth,
|
150 |
-
.frm_form_field.frm_first_fifth,
|
151 |
-
.frm_form_field.frm_last_fifth{
|
152 |
-
width:18%;
|
153 |
-
}
|
154 |
-
|
155 |
-
.frm_form_field.frm_two_fifths {
|
156 |
-
width:38.5%;
|
157 |
-
}
|
158 |
-
|
159 |
-
.frm_form_field.frm_three_fifths {
|
160 |
-
width:59%;
|
161 |
-
}
|
162 |
-
|
163 |
-
.frm_form_field.frm_four_fifths {
|
164 |
-
width:79.5%;
|
165 |
-
}
|
166 |
-
|
167 |
-
.frm_form_field.frm2,
|
168 |
-
.frm_submit.frm2,
|
169 |
-
.frm_form_field.frm_sixth,
|
170 |
-
.frm_submit.frm_sixth,
|
171 |
-
.frm_form_field.frm_first_sixth,
|
172 |
-
.frm_form_field.frm_last_sixth{
|
173 |
-
width:14.58%;
|
174 |
-
}
|
175 |
-
|
176 |
-
.frm_form_field.frm10,
|
177 |
-
.frm_submit.frm10{
|
178 |
-
width:82.92%;
|
179 |
-
}
|
180 |
-
|
181 |
-
.frm_form_field.frm_seventh,
|
182 |
-
.frm_submit.frm_seventh,
|
183 |
-
.frm_form_field.frm_first_seventh,
|
184 |
-
.frm_form_field.frm_last_seventh{
|
185 |
-
width:12.14%;
|
186 |
-
}
|
187 |
-
|
188 |
-
.frm_form_field.frm_eighth,
|
189 |
-
.frm_submit.frm_eighth,
|
190 |
-
.frm_form_field.frm_first_eighth,
|
191 |
-
.frm_form_field.frm_last_eighth{
|
192 |
-
width:10.31%;
|
193 |
-
}
|
194 |
-
|
195 |
-
.frm_form_field.frm_left_inline,
|
196 |
-
.frm_form_field.frm_first_inline,
|
197 |
-
.frm_form_field.frm_inline,
|
198 |
-
.frm_submit.frm_inline,
|
199 |
-
.frm_form_field.frm_right_inline,
|
200 |
-
.frm_form_field.frm_last_inline{
|
201 |
-
width:auto;
|
202 |
-
}
|
203 |
-
|
204 |
-
.frm_full,
|
205 |
-
.frm_full .wp-editor-wrap,
|
206 |
-
.frm_full input:not([type='checkbox']):not([type='radio']):not([type='button']),
|
207 |
-
.frm_full select,
|
208 |
-
.frm_full textarea{
|
209 |
-
width:100% !important;
|
210 |
-
}
|
211 |
-
|
212 |
-
.frm_full .wp-editor-wrap input{
|
213 |
-
width:auto !important;
|
214 |
-
}
|
215 |
-
|
216 |
-
.frm_form_field.frm_inline_container,
|
217 |
-
.frm_form_field.frm_right_container,
|
218 |
-
.frm_form_field.frm_left_container,
|
219 |
-
.frm_combo_inputs_container,
|
220 |
-
.frm_grid_container,
|
221 |
-
.frm_form_fields .frm_section_heading,
|
222 |
-
.frm_form_fields .frm_fields_container,
|
223 |
-
.frm_form_field.frm_two_col .frm_opt_container,
|
224 |
-
.frm_form_field.frm_three_col .frm_opt_container,
|
225 |
-
.frm_form_field.frm_four_col .frm_opt_container{
|
226 |
-
display:block;
|
227 |
-
}
|
228 |
-
|
229 |
-
.frm_form_field.frm_left_container .frm_primary_label{
|
230 |
-
float:left;
|
231 |
-
display:inline;
|
232 |
-
max-width:33%;
|
233 |
-
margin-right:5%;
|
234 |
-
}
|
235 |
-
|
236 |
-
.with_frm_style .frm_conf_field.frm_left_container .frm_primary_label{
|
237 |
-
display:inline;
|
238 |
-
visibility:hidden;
|
239 |
-
}
|
240 |
-
|
241 |
-
.frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
242 |
-
.frm_form_field.frm_left_container:not(.frm_dynamic_select_container) select,
|
243 |
-
.frm_form_field.frm_left_container textarea,
|
244 |
-
.frm_form_field.frm_left_container .wp-editor-wrap,
|
245 |
-
.frm_form_field.frm_left_container .frm_opt_container,
|
246 |
-
.frm_form_field.frm_left_container .frm_dropzone,
|
247 |
-
.frm_form_field.frm_left_container .frm-g-recaptcha,
|
248 |
-
.frm_form_field.frm_left_container .g-recaptcha,
|
249 |
-
.frm_form_field.frm_left_container .chosen-container,
|
250 |
-
.frm_form_field.frm_left_container .frm_combo_inputs_container,
|
251 |
-
.frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
252 |
-
.frm_form_field.frm_right_container:not(.frm_dynamic_select_container) select,
|
253 |
-
.frm_form_field.frm_right_container textarea,
|
254 |
-
.frm_form_field.frm_right_container .wp-editor-wrap,
|
255 |
-
.frm_form_field.frm_right_container .frm_opt_container,
|
256 |
-
.frm_form_field.frm_right_container .frm_dropzone,
|
257 |
-
.frm_form_field.frm_right_container .frm-g-recaptcha,
|
258 |
-
.frm_form_field.frm_right_container .g-recaptcha,
|
259 |
-
.frm_form_field.frm_right_container .chosen-container,
|
260 |
-
.frm_form_field.frm_right_container .frm_combo_inputs_container{
|
261 |
-
max-width:62%;
|
262 |
-
}
|
263 |
-
|
264 |
-
.frm_form_field.frm_left_container .frm_combo_inputs_container input,
|
265 |
-
.frm_form_field.frm_left_container .frm_combo_inputs_container select,
|
266 |
-
.frm_form_field.frm_right_container .frm_combo_inputs_container input,
|
267 |
-
.frm_form_field.frm_right_container .frm_combo_inputs_container select{
|
268 |
-
max-width:100%;
|
269 |
-
}
|
270 |
-
|
271 |
-
.frm_form_field.frm_left_container .frm_data_container,
|
272 |
-
.frm_form_field.frm_right_container .frm_data_container,
|
273 |
-
.frm_form_field.frm_inline_container .frm_data_container,
|
274 |
-
.frm_form_field.frm_left_container .frm_opt_container,
|
275 |
-
.frm_form_field.frm_right_container .frm_opt_container,
|
276 |
-
.frm_form_field.frm_inline_container .frm_opt_container,
|
277 |
-
.frm_form_field.frm_left_container .frm_combo_inputs_container,
|
278 |
-
.frm_form_field.frm_right_container .frm_combo_inputs_container,
|
279 |
-
.frm_form_field.frm_inline_container .frm_combo_inputs_container,
|
280 |
-
.frm_form_field.frm_left_container .wp-editor-wrap,
|
281 |
-
.frm_form_field.frm_right_container .wp-editor-wrap,
|
282 |
-
.frm_form_field.frm_inline_container .wp-editor-wrap,
|
283 |
-
.frm_form_field.frm_left_container .frm_dropzone,
|
284 |
-
.frm_form_field.frm_right_container .frm_dropzone,
|
285 |
-
.frm_form_field.frm_inline_container .frm_dropzone,
|
286 |
-
.frm_form_field.frm_left_container .frm-g-recaptcha,
|
287 |
-
.frm_form_field.frm_right_container .frm-g-recaptcha,
|
288 |
-
.frm_form_field.frm_inline_container .frm-g-recaptcha,
|
289 |
-
.frm_form_field.frm_left_container .g-recaptcha,
|
290 |
-
.frm_form_field.frm_right_container .g-recaptcha,
|
291 |
-
.frm_form_field.frm_inline_container .g-recaptcha{
|
292 |
-
display:inline-block;
|
293 |
-
}
|
294 |
-
|
295 |
-
.frm_form_field.frm_left_half.frm_left_container .frm_primary_label,
|
296 |
-
.frm_form_field.frm_right_half.frm_left_container .frm_primary_label,
|
297 |
-
.frm_form_field.frm_left_half.frm_right_container .frm_primary_label,
|
298 |
-
.frm_form_field.frm_right_half.frm_right_container .frm_primary_label,
|
299 |
-
.frm_form_field.frm_first_half.frm_left_container .frm_primary_label,
|
300 |
-
.frm_form_field.frm_last_half.frm_left_container .frm_primary_label,
|
301 |
-
.frm_form_field.frm_first_half.frm_right_container .frm_primary_label,
|
302 |
-
.frm_form_field.frm_last_half.frm_right_container .frm_primary_label,
|
303 |
-
.frm_form_field.frm_half.frm_right_container .frm_primary_label,
|
304 |
-
.frm_form_field.frm_half.frm_left_container .frm_primary_label{
|
305 |
-
-webkit-box-sizing:border-box;
|
306 |
-
-moz-box-sizing:border-box;
|
307 |
-
box-sizing:border-box;
|
308 |
-
max-width:33%;
|
309 |
-
}
|
310 |
-
|
311 |
-
.with_frm_style .frm_left_container .frm_primary_label{
|
312 |
-
float:left;
|
313 |
-
display:inline !important;
|
314 |
-
width:150px;
|
315 |
-
max-width:33% !important;
|
316 |
-
margin-right:10px !important;
|
317 |
-
}
|
318 |
-
|
319 |
-
.with_frm_style .frm_right_container .frm_primary_label{
|
320 |
-
display:inline !important;
|
321 |
-
width:150px;
|
322 |
-
max-width:33% !important;
|
323 |
-
margin-left:10px !important;
|
324 |
-
}
|
325 |
-
|
326 |
-
.with_frm_style .frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
327 |
-
.with_frm_style .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) select,
|
328 |
-
.with_frm_style .frm_form_field.frm_left_container textarea,
|
329 |
-
.with_frm_style .frm_form_field.frm_left_container .frm_opt_container,
|
330 |
-
.with_frm_style .frm_form_field.frm_left_container .frm-g-recaptcha,
|
331 |
-
.with_frm_style .frm_form_field.frm_left_container .g-recaptcha,
|
332 |
-
.with_frm_style .frm_form_field.frm_left_container .chosen-container,
|
333 |
-
.with_frm_style .frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
334 |
-
.with_frm_style .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) select,
|
335 |
-
.with_frm_style .frm_form_field.frm_right_container textarea,
|
336 |
-
.with_frm_style .frm_form_field.frm_right_container .frm_opt_container,
|
337 |
-
.with_frm_style .frm_form_field.frm_right_container .g-recaptcha,
|
338 |
-
.with_frm_style .frm_form_field.frm_right_container .frm-g-recaptcha,
|
339 |
-
.with_frm_style .frm_form_field.frm_right_container .chosen-container{
|
340 |
-
max-width:62% !important;
|
341 |
-
}
|
342 |
-
|
343 |
-
.with_frm_style .frm_form_field.frm_left_container .frm_combo_inputs_container .frm_form_field input,
|
344 |
-
.with_frm_style .frm_form_field.frm_left_container .frm_combo_inputs_container .frm_form_field select,
|
345 |
-
.with_frm_style .frm_form_field.frm_right_container .frm_combo_inputs_container .frm_form_field input,
|
346 |
-
.with_frm_style .frm_form_field.frm_right_container .frm_combo_inputs_container .frm_form_field select{
|
347 |
-
max-width:100% !important;
|
348 |
-
}
|
349 |
-
|
350 |
-
.with_frm_style .frm_form_field.frm_left_container .frm_opt_container,
|
351 |
-
.with_frm_style .frm_form_field.frm_right_container .frm_opt_container,
|
352 |
-
.with_frm_style .frm_form_field.frm_left_container .g-recaptcha,
|
353 |
-
.with_frm_style .frm_form_field.frm_right_container .g-recaptcha,
|
354 |
-
.with_frm_style .frm_form_field.frm_left_container .frm-g-recaptcha,
|
355 |
-
.with_frm_style .frm_form_field.frm_right_container .frm-g-recaptcha{
|
356 |
-
display:inline-block !important;
|
357 |
-
}
|
358 |
-
|
359 |
-
.with_frm_style .frm_left_container > p.description::before,
|
360 |
-
.with_frm_style .frm_left_container > div.description::before,
|
361 |
-
.with_frm_style .frm_left_container > div.frm_description::before,
|
362 |
-
.with_frm_style .frm_left_container > .frm_error::before,
|
363 |
-
.with_frm_style .frm_right_container > p.description::after,
|
364 |
-
.with_frm_style .frm_right_container > div.description::after,
|
365 |
-
.with_frm_style .frm_right_container > div.frm_description::after,
|
366 |
-
.with_frm_style .frm_right_container > .frm_error::after{
|
367 |
-
content:'' !important;
|
368 |
-
display:inline-block !important;
|
369 |
-
width:150px;
|
370 |
-
max-width:33% !important;
|
371 |
-
margin-right:10px !important;
|
372 |
-
}
|
373 |
-
|
374 |
-
.with_frm_style .frm_left_container.frm_inline .frm_primary_label{
|
375 |
-
max-width:90% !important;
|
376 |
-
}
|
377 |
-
|
378 |
-
.with_frm_style .form-field.frm_col_field{
|
379 |
-
clear:none;
|
380 |
-
float:left;
|
381 |
-
margin-right:20px;
|
382 |
-
}
|
383 |
-
|
384 |
-
.with_frm_style .form-field.frm_col_field div.frm_description{
|
385 |
-
width:auto;
|
386 |
-
max-width:100%;
|
387 |
-
}
|
388 |
-
|
389 |
-
.with_frm_style .frm_inline_container .frm_primary_label,
|
390 |
-
.with_frm_style .frm_inline_container.frm_dynamic_select_container .frm_opt_container{
|
391 |
-
display:inline !important;
|
392 |
-
}
|
393 |
-
|
394 |
-
.with_frm_style .frm_inline_container .frm_primary_label{
|
395 |
-
margin-right:10px !important;
|
396 |
-
}
|
397 |
-
/* End of left and right label styling */
|
398 |
-
|
399 |
-
/* Radio/checkbox columns */
|
400 |
-
.frm_form_field.frm_two_col .frm_radio,
|
401 |
-
.frm_form_field.frm_three_col .frm_radio,
|
402 |
-
.frm_form_field.frm_four_col .frm_radio,
|
403 |
-
.frm_form_field.frm_two_col .frm_checkbox,
|
404 |
-
.frm_form_field.frm_three_col .frm_checkbox,
|
405 |
-
.frm_form_field.frm_four_col .frm_checkbox{
|
406 |
-
float:left;
|
407 |
-
}
|
408 |
-
|
409 |
-
.frm_form_field.frm_two_col .frm_radio,
|
410 |
-
.frm_form_field.frm_two_col .frm_checkbox{
|
411 |
-
width:48%;
|
412 |
-
margin-right:4%;
|
413 |
-
}
|
414 |
-
|
415 |
-
.frm_form_field.frm_three_col .frm_radio,
|
416 |
-
.frm_form_field.frm_three_col .frm_checkbox{
|
417 |
-
width:30%;
|
418 |
-
margin-right:5%;
|
419 |
-
}
|
420 |
-
|
421 |
-
.frm_form_field.frm_four_col .frm_radio,
|
422 |
-
.frm_form_field.frm_four_col .frm_checkbox{
|
423 |
-
width:22%;
|
424 |
-
margin-right:4%;
|
425 |
-
}
|
426 |
-
|
427 |
-
.frm_form_field.frm_two_col .frm_radio:nth-child(2n+2),
|
428 |
-
.frm_form_field.frm_two_col .frm_checkbox:nth-child(2n+2),
|
429 |
-
.frm_form_field.frm_three_col .frm_radio:nth-child(3n+3),
|
430 |
-
.frm_form_field.frm_three_col .frm_checkbox:nth-child(3n+3),
|
431 |
-
.frm_form_field.frm_four_col .frm_radio:nth-child(4n+4),
|
432 |
-
.frm_form_field.frm_four_col .frm_checkbox:nth-child(4n+4){
|
433 |
-
margin-right:0;
|
434 |
-
}
|
435 |
-
|
436 |
-
/* RTL */
|
437 |
-
|
438 |
-
.with_frm_style.frm_rtl .frm_form_field.frm2,
|
439 |
-
.with_frm_style.frm_rtl .frm_form_field.frm3,
|
440 |
-
.with_frm_style.frm_rtl .frm_form_field.frm4,
|
441 |
-
.with_frm_style.frm_rtl .frm_form_field.frm6,
|
442 |
-
.with_frm_style.frm_rtl .frm_form_field.frm8,
|
443 |
-
.with_frm_style.frm_rtl .frm_form_field.frm9,
|
444 |
-
.with_frm_style.frm_rtl .frm_form_field.frm10,
|
445 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_half,
|
446 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_third,
|
447 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_two_thirds,
|
448 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_fourth,
|
449 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_fifth,
|
450 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_sixth,
|
451 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_seventh,
|
452 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_eighth,
|
453 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_inline,
|
454 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_half,
|
455 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_third,
|
456 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_two_thirds,
|
457 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_fourth,
|
458 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_fifth,
|
459 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_inline,
|
460 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_half,
|
461 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_third,
|
462 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_two_thirds,
|
463 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_fourth,
|
464 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_fifth,
|
465 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_inline,
|
466 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_right_half,
|
467 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_right_third,
|
468 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_right_two_thirds,
|
469 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_right_fourth,
|
470 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_right_fifth,
|
471 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_right_inline,
|
472 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_last_half,
|
473 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_last_third,
|
474 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_last_two_thirds,
|
475 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_last_fourth,
|
476 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_last_fifth,
|
477 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_last_inline{
|
478 |
-
float:right;
|
479 |
-
margin-right:2.5%;
|
480 |
-
margin-left:0;
|
481 |
-
clear:none;
|
482 |
-
}
|
483 |
-
|
484 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_half,
|
485 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_half,
|
486 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first,
|
487 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_third,
|
488 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_third,
|
489 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_two_thirds,
|
490 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_two_thirds,
|
491 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_fourth,
|
492 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_fourth,
|
493 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_fifth,
|
494 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_fifth,
|
495 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_left_inline,
|
496 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_first_inline{
|
497 |
-
clear:right;
|
498 |
-
margin-right:0;
|
499 |
-
}
|
500 |
-
|
501 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_two_col .frm_radio,
|
502 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_three_col .frm_radio,
|
503 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_four_col .frm_radio,
|
504 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_two_col .frm_checkbox,
|
505 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_three_col .frm_checkbox,
|
506 |
-
.with_frm_style.frm_rtl .frm_form_field.frm_four_col .frm_checkbox{
|
507 |
-
float:right;
|
508 |
-
}
|
509 |
-
|
510 |
-
/* End RTL */
|
511 |
-
|
512 |
-
@media only screen and (max-width: 500px) {
|
513 |
-
.with_frm_style .frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
514 |
-
.with_frm_style .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) select,
|
515 |
-
.with_frm_style .frm_form_field.frm_left_container textarea,
|
516 |
-
.with_frm_style .frm_form_field.frm_left_container .frm_opt_container,
|
517 |
-
.with_frm_style .frm_form_field.frm_left_container .frm-g-recaptcha,
|
518 |
-
.with_frm_style .frm_form_field.frm_left_container .g-recaptcha,
|
519 |
-
.with_frm_style .frm_form_field.frm_left_container .chosen-container,
|
520 |
-
.with_frm_style .frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
521 |
-
.with_frm_style .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) select,
|
522 |
-
.with_frm_style .frm_form_field.frm_right_container textarea,
|
523 |
-
.with_frm_style .frm_form_field.frm_right_container .frm_opt_container,
|
524 |
-
.with_frm_style .frm_form_field.frm_right_container .frm-g-recaptcha,
|
525 |
-
.with_frm_style .frm_form_field.frm_right_container .g-recaptcha,
|
526 |
-
.with_frm_style .frm_form_field.frm_right_container .chosen-container{
|
527 |
-
max-width:100% !important;
|
528 |
-
}
|
529 |
-
|
530 |
-
.with_frm_style .frm_left_container > p.description::before,
|
531 |
-
.with_frm_style .frm_left_container > div.description::before,
|
532 |
-
.with_frm_style .frm_left_container > div.frm_description::before,
|
533 |
-
.with_frm_style .frm_left_container > .frm_error::before,
|
534 |
-
.with_frm_style .frm_right_container > p.description::after,
|
535 |
-
.with_frm_style .frm_right_container > div.description::after,
|
536 |
-
.with_frm_style .frm_right_container > div.frm_description::after,
|
537 |
-
.with_frm_style .frm_right_container > .frm_error::after{
|
538 |
-
display:none !important;
|
539 |
-
}
|
540 |
-
|
541 |
-
.with_frm_style .frm_left_container .frm_primary_label,
|
542 |
-
.with_frm_style .frm_right_container .frm_primary_label{
|
543 |
-
width:100% !important;
|
544 |
-
max-width:100% !important;
|
545 |
-
margin-right:0 !important;
|
546 |
-
margin-left:0 !important;
|
547 |
-
padding-right:0 !important;
|
548 |
-
padding-left:0 !important;
|
549 |
-
}
|
550 |
-
}
|
551 |
-
|
552 |
-
@media only screen and (max-width: 600px){
|
553 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
554 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container select,
|
555 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container textarea,
|
556 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container .frm_opt_container,
|
557 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container.frm-g-recaptcha,
|
558 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container.g-recaptcha,
|
559 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container .chosen-container,
|
560 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
561 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container select,
|
562 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container textarea,
|
563 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container .frm_opt_container,
|
564 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container.frm-g-recaptcha,
|
565 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container.g-recaptcha,
|
566 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container .chosen-container{
|
567 |
-
max-width:100% !important;
|
568 |
-
}
|
569 |
-
|
570 |
-
.with_frm_style .frm_form_field.frm_left_half.frm_left_container .frm_primary_label,
|
571 |
-
.with_frm_style .frm_form_field.frm_right_half.frm_left_container .frm_primary_label,
|
572 |
-
.with_frm_style .frm_form_field.frm_first_half.frm_left_container .frm_primary_label,
|
573 |
-
.with_frm_style .frm_form_field.frm_last_half.frm_left_container .frm_primary_label,
|
574 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container .frm_primary_label,
|
575 |
-
.with_frm_style .frm_form_field.frm_left_half.frm_right_container .frm_primary_label,
|
576 |
-
.with_frm_style .frm_form_field.frm_right_half.frm_right_container .frm_primary_label,
|
577 |
-
.with_frm_style .frm_form_field.frm_first_half.frm_right_container .frm_primary_label,
|
578 |
-
.with_frm_style .frm_form_field.frm_last_half.frm_right_container .frm_primary_label,
|
579 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container .frm_primary_label{
|
580 |
-
max-width:100% !important;
|
581 |
-
margin-right:0;
|
582 |
-
margin-left:0;
|
583 |
-
padding-right:0;
|
584 |
-
padding-left:0;
|
585 |
-
width:100% !important;
|
586 |
-
}
|
587 |
-
|
588 |
-
|
589 |
-
.with_frm_style .frm_repeat_inline,
|
590 |
-
.with_frm_style .frm_repeat_grid{
|
591 |
-
margin: 20px 0;
|
592 |
-
}
|
593 |
-
|
594 |
-
.with_frm_style .frm_form_field.frm_first_half.frm_right_container div.frm_description,
|
595 |
-
.with_frm_style .frm_form_field.frm_first_half.frm_right_container .frm_error,
|
596 |
-
.with_frm_style .frm_form_field.frm_first_half .frm_right_container div.frm_description,
|
597 |
-
.with_frm_style .frm_form_field.frm_first_half .frm_right_container .frm_error,
|
598 |
-
.with_frm_style .frm_form_field.frm_last_half.frm_right_container div.frm_description,
|
599 |
-
.with_frm_style .frm_form_field.frm_last_half.frm_right_container .frm_error,
|
600 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container div.frm_description,
|
601 |
-
.with_frm_style .frm_form_field.frm_half.frm_right_container .frm_error,
|
602 |
-
.with_frm_style .frm_form_field.frm_first_half.frm_left_container div.frm_description,
|
603 |
-
.with_frm_style .frm_form_field.frm_first_half.frm_left_container .frm_error,
|
604 |
-
.with_frm_style .frm_form_field.frm_first_half .frm_left_container div.frm_description,
|
605 |
-
.with_frm_style .frm_form_field.frm_first_half .frm_left_container .frm_error,
|
606 |
-
.with_frm_style .frm_form_field.frm_last_half.frm_left_container div.frm_description,
|
607 |
-
.with_frm_style .frm_form_field.frm_last_half.frm_left_container .frm_error,
|
608 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container div.frm_description,
|
609 |
-
.with_frm_style .frm_form_field.frm_half.frm_left_container .frm_error{
|
610 |
-
margin-right:0;
|
611 |
-
margin-left:0;
|
612 |
-
padding-right:0;
|
613 |
-
padding-left:0;
|
614 |
-
}
|
615 |
-
|
616 |
-
.frm_form_field.frm2,
|
617 |
-
.frm_submit.frm2,
|
618 |
-
.frm_form_field.frm3,
|
619 |
-
.frm_submit.frm3,
|
620 |
-
.frm_form_field.frm4,
|
621 |
-
.frm_submit.frm4,
|
622 |
-
.frm_form_field.frm6,
|
623 |
-
.frm_submit.frm6,
|
624 |
-
.frm_form_field.frm8,
|
625 |
-
.frm_submit.frm8,
|
626 |
-
.frm_form_field.frm9,
|
627 |
-
.frm_submit.frm9,
|
628 |
-
.frm_form_field.frm10,
|
629 |
-
.frm_submit.frm10,
|
630 |
-
.frm_form_field.frm_half,
|
631 |
-
.frm_submit.frm_half,
|
632 |
-
.frm_form_field.frm_left_half,
|
633 |
-
.frm_form_field.frm_right_half,
|
634 |
-
.frm_form_field.frm_first_half,
|
635 |
-
.frm_form_field.frm_last_half,
|
636 |
-
.frm_form_field.frm_first_third,
|
637 |
-
.frm_form_field.frm_third,
|
638 |
-
.frm_submit.frm_third,
|
639 |
-
.frm_form_field.frm_last_third,
|
640 |
-
.frm_form_field.frm_first_two_thirds,
|
641 |
-
.frm_form_field.frm_last_two_thirds,
|
642 |
-
.frm_form_field.frm_two_thirds,
|
643 |
-
.frm_form_field.frm_left_fourth,
|
644 |
-
.frm_form_field.frm_fourth,
|
645 |
-
.frm_submit.frm_fourth,
|
646 |
-
.frm_form_field.frm_right_fourth,
|
647 |
-
.frm_form_field.frm_first_fourth,
|
648 |
-
.frm_form_field.frm_last_fourth,
|
649 |
-
.frm_form_field.frm_three_fourths,
|
650 |
-
.frm_form_field.frm_fifth,
|
651 |
-
.frm_submit.frm_fifth,
|
652 |
-
.frm_form_field.frm_two_fifths,
|
653 |
-
.frm_form_field.frm_three_fifths,
|
654 |
-
.frm_form_field.frm_four_fifths,
|
655 |
-
.frm_form_field.frm_sixth,
|
656 |
-
.frm_submit.frm_sixth,
|
657 |
-
.frm_form_field.frm_seventh,
|
658 |
-
.frm_submit.frm_seventh,
|
659 |
-
.frm_form_field.frm_eighth,
|
660 |
-
.frm_submit.frm_eighth,
|
661 |
-
.frm_form_field.frm_first_inline,
|
662 |
-
.frm_form_field.frm_inline,
|
663 |
-
.frm_submit.frm_inline,
|
664 |
-
.frm_form_field.frm_last_inline{
|
665 |
-
width:100%;
|
666 |
-
margin-left:0;
|
667 |
-
margin-right:0;
|
668 |
-
clear:both;
|
669 |
-
float:none;
|
670 |
-
}
|
671 |
-
|
672 |
-
.frm_form_field.frm_four_col .frm_radio,
|
673 |
-
.frm_form_field.frm_four_col .frm_checkbox{
|
674 |
-
width:48%;
|
675 |
-
}
|
676 |
-
|
677 |
-
.frm_form_field.frm_four_col .frm_radio:nth-child(2n+2),
|
678 |
-
.frm_form_field.frm_four_col .frm_checkbox:nth-child(2n+2){
|
679 |
-
margin-right:0;
|
680 |
-
}
|
681 |
-
}
|
1 |
+
/* This file is deprecated! */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formidable.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Formidable Forms
|
4 |
Description: Quickly and easily create drag-and-drop forms
|
5 |
-
Version: 5.0.
|
6 |
Plugin URI: https://formidableforms.com/
|
7 |
Author URI: https://formidableforms.com/
|
8 |
Author: Strategy11
|
2 |
/*
|
3 |
Plugin Name: Formidable Forms
|
4 |
Description: Quickly and easily create drag-and-drop forms
|
5 |
+
Version: 5.0.05
|
6 |
Plugin URI: https://formidableforms.com/
|
7 |
Author URI: https://formidableforms.com/
|
8 |
Author: Strategy11
|
js/formidable.js
CHANGED
@@ -470,7 +470,7 @@ function frmFrontFormJS() {
|
|
470 |
msg = '';
|
471 |
}
|
472 |
|
473 |
-
if ( '' !== msg ) {
|
474 |
errorHtml = field.getAttribute( 'data-error-html' );
|
475 |
if ( null !== errorHtml ) {
|
476 |
errorHtml = errorHtml.replace( /\+/g, '%20' );
|
@@ -482,6 +482,10 @@ function frmFrontFormJS() {
|
|
482 |
return msg;
|
483 |
}
|
484 |
|
|
|
|
|
|
|
|
|
485 |
function shouldJSValidate( object ) {
|
486 |
var validate = jQuery( object ).hasClass( 'frm_js_validate' );
|
487 |
if ( validate && typeof frmProForm !== 'undefined' && ( frmProForm.savingDraft( object ) || frmProForm.goingToPreviousPage( object ) ) ) {
|
470 |
msg = '';
|
471 |
}
|
472 |
|
473 |
+
if ( '' !== msg && shouldWrapErrorHtmlAroundMessageType( messageType ) ) {
|
474 |
errorHtml = field.getAttribute( 'data-error-html' );
|
475 |
if ( null !== errorHtml ) {
|
476 |
errorHtml = errorHtml.replace( /\+/g, '%20' );
|
482 |
return msg;
|
483 |
}
|
484 |
|
485 |
+
function shouldWrapErrorHtmlAroundMessageType( type ) {
|
486 |
+
return 'pattern' !== type;
|
487 |
+
}
|
488 |
+
|
489 |
function shouldJSValidate( object ) {
|
490 |
var validate = jQuery( object ).hasClass( 'frm_js_validate' );
|
491 |
if ( validate && typeof frmProForm !== 'undefined' && ( frmProForm.savingDraft( object ) || frmProForm.goingToPreviousPage( object ) ) ) {
|
js/formidable.min.js
CHANGED
@@ -16,41 +16,41 @@ if(""!==value&&""!==confirmValue&&value!==confirmValue)errors["conf_"+strippedFi
|
|
16 |
field.value,format=getFieldValidationMessage(field,"pattern");if(format!==""&&text!==""){fieldID=getFieldId(field,true);if(!(fieldID in errors)){format=new RegExp("^"+format+"$","i");if(format.test(text)===false)errors[fieldID]=getFieldValidationMessage(field,"data-invmsg")}}return errors}function hasInvisibleRecaptcha(object){var recaptcha,recaptchaID,alreadyChecked;if(isGoingToPrevPage(object))return false;recaptcha=jQuery(object).find('.frm-g-recaptcha[data-size="invisible"], .g-recaptcha[data-size="invisible"]');
|
17 |
if(recaptcha.length){recaptchaID=recaptcha.data("rid");alreadyChecked=grecaptcha.getResponse(recaptchaID);if(alreadyChecked.length===0)return recaptcha;else return false}else return false}function executeInvisibleRecaptcha(invisibleRecaptcha){var recaptchaID=invisibleRecaptcha.data("rid");grecaptcha.reset(recaptchaID);grecaptcha.execute(recaptchaID)}function validateRecaptcha(form,errors){var recaptchaID,response,fieldContainer,fieldID,$recaptcha=jQuery(form).find(".frm-g-recaptcha");if($recaptcha.length){recaptchaID=
|
18 |
$recaptcha.data("rid");try{response=grecaptcha.getResponse(recaptchaID)}catch(e){if(jQuery(form).find('input[name="recaptcha_checked"]').length)return errors;else response=""}if(response.length===0){fieldContainer=$recaptcha.closest(".frm_form_field");fieldID=fieldContainer.attr("id").replace("frm_field_","").replace("_container","");errors[fieldID]=""}}return errors}function getFieldValidationMessage(field,messageType){var msg,errorHtml;msg=field.getAttribute(messageType);if(null===msg)msg="";if(""!==
|
19 |
-
msg){errorHtml=field.getAttribute("data-error-html");if(null!==errorHtml){errorHtml=errorHtml.replace(/\+/g,"%20");msg=decodeURIComponent(errorHtml).replace("[error]",msg);msg=msg.replace("[key]",getFieldId(field,false))}}return msg}function shouldJSValidate(object){var validate=jQuery(object).hasClass("frm_js_validate");if(validate&&typeof frmProForm!=="undefined"&&(frmProForm.savingDraft(object)||
|
20 |
-
action){var fieldset;if(typeof action==="undefined")jQuery(object).find('input[name="frm_action"]').val();fieldset=jQuery(object).find(".frm_form_field");fieldset.addClass("frm_doing_ajax");jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(object).serialize()+"&action=frm_entries_"+action+"&nonce="+frm_js.nonce,success:function(response){var formID,replaceContent,pageOrder,formReturned,contSubmit,
|
21 |
-
if(response===null)response=defaultResponse;response=response.replace(/^\s+|\s+$/g,"");if(response.indexOf("{")===0)response=JSON.parse(response);else response=defaultResponse;if(typeof response.redirect!=="undefined"){jQuery(document).trigger("frmBeforeFormRedirect",[object,response]);window.location=response.redirect}else if(response.content!==""){removeSubmitLoading(jQuery(object));if(frm_js.offset
|
22 |
-
response.content=response.content.replace(/ frm_pro_form /g," frm_pro_form frm_no_hide ");replaceContent=jQuery(object).closest(".frm_forms");removeAddedScripts(replaceContent,formID);delay=maybeSlideOut(replaceContent,response.content);setTimeout(function(){var container,input,previousInput;replaceContent.replaceWith(response.content);addUrlParam(response);if(typeof frmThemeOverride_frmAfterSubmit===
|
23 |
-
frmThemeOverride_frmAfterSubmit(formReturned,pageOrder,response.content,object)}if(typeof response.recaptcha!=="undefined"){container=jQuery("#frm_form_"+formID+"_container").find(".frm_fields_container");input='<input type="hidden" name="recaptcha_checked" value="'+response.recaptcha+'">';previousInput=container.find('input[name="recaptcha_checked"]');
|
24 |
-
"enable");contSubmit=true;removeAllErrors();$fieldCont=null;for(key in response.errors){$fieldCont=jQuery(object).find("#frm_field_"+key+"_container");if($fieldCont.length){if(!$fieldCont.is(":visible")){inCollapsedSection=$fieldCont.closest(".frm_toggle_container");if(inCollapsedSection.length){frmTrigger=
|
25 |
-
response.errors);contSubmit=false}}}jQuery(object).find(".frm-g-recaptcha, .g-recaptcha").each(function(){var $recaptcha=jQuery(this),recaptchaID=$recaptcha.data("rid");if(typeof grecaptcha!=="undefined"&&grecaptcha)if(recaptchaID)grecaptcha.reset(recaptchaID);else grecaptcha.reset()});jQuery(document).trigger("frmFormErrors",
|
26 |
-
object.submit()}},error:function(){jQuery(object).find('input[type="submit"], input[type="button"]').prop("disabled",false);object.submit()}})}function afterFormSubmitted(object,response){var formCompleted=jQuery(response.content).find(".frm_message");if(formCompleted.length)jQuery(document).trigger("frmFormComplete",
|
27 |
-
if(endReplace.length){formContainer.nextUntil(".frm_end_ajax_"+formID).remove();endReplace.remove()}}function maybeSlideOut(oldContent,newContent){var c,newClass="frm_slideout";if(newContent.indexOf(" frm_slide")!==-1){c=oldContent.children();if(newContent.indexOf(" frm_going_back")!==-1)newClass+=" frm_going_back";c.removeClass("frm_going_back");
|
28 |
-
response.page);window.history.pushState({"html":response.html},"","?"+url)}}function addQueryVar(key,value){var kvp,i,x;key=encodeURI(key);value=encodeURI(value);kvp=document.location.search.substr(1).split("&");i=kvp.length;while(i--){x=kvp[i].split("=");if(x[0]==key){x[1]=value;kvp[i]=x.join("=");break}}if(i<0)kvp[kvp.length]=[key,value].join("=");
|
29 |
-
input=$fieldCont.find("input, select, textarea");id="frm_error_field_"+key;describedBy=input.attr("aria-describedby");if(typeof frmThemeOverride_frmPlaceError==="function")frmThemeOverride_frmPlaceError(key,jsErrors);else{if(-1!==jsErrors[key].indexOf("<div"))$fieldCont.append(jsErrors[key]);else $fieldCont.append('<div class="frm_error" id="'+
|
30 |
-
describedBy)}input.attr("aria-invalid",true);jQuery(document).trigger("frmAddFieldError",[$fieldCont,key,jsErrors])}}function removeFieldError($fieldCont){var errorMessage=$fieldCont.find(".frm_error"),errorId=errorMessage.attr("id"),input=$fieldCont.find("input, select, textarea"),describedBy=input.attr("aria-describedby")
|
31 |
-
"");input.attr("aria-describedby",describedBy)}}function removeAllErrors(){jQuery(".form-field").removeClass("frm_blank_field has-error");jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function scrollToFirstField(object){var field=jQuery(object).find(".frm_blank_field").first();
|
32 |
-
!$object.hasClass("frm_loading_prev")){addLoadingClass($object);$object.trigger("frmStartFormLoading")}}function addLoadingClass($object){var loadingClass=isGoingToPrevPage($object)?"frm_loading_prev":"frm_loading_form";$object.addClass(loadingClass)}
|
33 |
-
loadingForm.removeClass("frm_loading_form");loadingForm.removeClass("frm_loading_prev");loadingForm.trigger("frmEndFormLoading");if(enable==="enable"){enableSubmitButton(loadingForm);enableSaveDraft(loadingForm)}}function showFileLoading(object){var fileval,
|
34 |
-
"clear")}function replaceDefault(){toggleDefault(jQuery(this),"replace")}function toggleDefault($thisField,e){var thisVal,v=$thisField.data("frmval").replace(/(\n|\r\n)/g,"\r");if(v===""||typeof v==="undefined")return false;
|
35 |
-
formId=this.getAttribute("data-fid"),label=$link.find(".frm_link_label");if(label.length<1)label=$link;label.append('<span class="frm-wait"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",
|
36 |
-
return confirm(message)}function toggleDiv(){var div=jQuery(this).data("frmtoggle");if(jQuery(div).is(":visible"))jQuery(div).slideUp("fast");else jQuery(div).slideDown("fast");return false}function addIndexOfFallbackForIE8(){var len,
|
37 |
-
|
38 |
-
function(obj){keys=[];for(i in obj)if(obj.hasOwnProperty(i))keys.push(i);return keys}}function onHoneypotFieldChange(){var css=jQuery(this).css("box-shadow");if(css.match(/inset/))this.parentNode.removeChild(this)}
|
39 |
-
if(!label)return;label.addEventListener("click",function(e){inputsContainer.querySelector(".frm_form_field:first-child input, .frm_form_field:first-child select, .frm_form_field:first-child textarea").focus()})})}
|
40 |
-
break}if("undefined"!==typeof element.classList){if(element.classList.contains("html-active"))timeoutCallback=function(){var textarea=element.querySelector("textarea");if(null!==textarea)textarea.focus()};
|
41 |
-
jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){if(jQuery(this).val()==="")jQuery(this).trigger("blur")});
|
42 |
-
'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',frmFrontForm.fieldValueChanged);jQuery(document).on("change keyup",".frm-show-form .frm_inside_container input, .frm-show-form .frm_inside_container select, .frm-show-form .frm_inside_container textarea",
|
43 |
-
toggleDiv);checkForErrorsAndMaybeSetFocus();changeFocusWhenClickComboFieldLabel();addIndexOfFallbackForIE8();addTrimFallbackForIE8();addFilterFallbackForIE8();addKeysFallbackForIE8()},getFieldId:function(field,fullID){return getFieldId(field,fullID)},renderRecaptcha:function(captcha){var formID,recaptchaID,size=
|
44 |
-
if(rendered)return;if(size==="invisible"){formID=jQuery(captcha).closest("form").find('input[name="form_id"]').val();jQuery(captcha).closest(".frm_form_field .frm_primary_label").hide();params.callback=function(token){frmFrontForm.afterRecaptcha(token,formID)}}recaptchaID=grecaptcha.render(captcha.id,params);
|
45 |
-
formID){var object=jQuery("#frm_form_"+formID+"_container form")[0];frmFrontForm.submitFormNow(object)},submitForm:function(e){frmFrontForm.submitFormManual(e,this)},submitFormManual:function(e,object){var isPro,errors,invisibleRecaptcha=hasInvisibleRecaptcha(object),classList=object.className.trim().split(/\s+/gi);
|
46 |
-
1)return;e.preventDefault();if(typeof frmProForm!=="undefined"&&typeof frmProForm.submitAllowed==="function")if(!frmProForm.submitAllowed(object))return;if(invisibleRecaptcha.length){showLoadingIndicator(jQuery(object));executeInvisibleRecaptcha(invisibleRecaptcha)}else{errors=frmFrontForm.validateFormSubmit(object);
|
47 |
-
object.className.trim().split(/\s+/gi);if(object.hasAttribute("data-token")&&null===object.querySelector('[name="antispam_token"]')){antispamInput=document.createElement("input");antispamInput.type="hidden";antispamInput.name="antispam_token";antispamInput.value=object.getAttribute("data-token");object.appendChild(antispamInput)}if(classList.indexOf("frm_ajax_submit")
|
48 |
-
jQuery(object).find('input[name="frm_action"]').val();frmFrontForm.checkFormErrors(object,action)}else object.submit()}else object.submit()},validateFormSubmit:function(object){if(typeof tinyMCE!=="undefined"&&jQuery(object).find(".wp-editor-wrap").length)tinyMCE.triggerSave();jsErrors=[];if(shouldJSValidate(object)){frmFrontForm.getAjaxFormErrors(object);if(Object.keys(jsErrors).length)frmFrontForm.addAjaxFormErrors(object)}return jsErrors},
|
49 |
-
jsErrors=validateForm(object);if(typeof frmThemeOverride_jsErrors==="function"){action=jQuery(object).find('input[name="frm_action"]').val();customErrors=frmThemeOverride_jsErrors(action,object);if(Object.keys(customErrors).length)for(key in customErrors)jsErrors[key]=customErrors[key]}return jsErrors},addAjaxFormErrors:function(object){var key,$fieldCont;removeAllErrors();for(key in jsErrors){$fieldCont=jQuery(object).find("#frm_field_"+key+
|
50 |
-
key,jsErrors);else delete jsErrors[key]}scrollToFirstField(object);checkForErrorsAndMaybeSetFocus()},checkFormErrors:function(object,action){getFormErrors(object,action)},checkRequiredField:function(field,errors){return checkRequiredField(field,errors)},showSubmitLoading:function($object){showSubmitLoading($object)},removeSubmitLoading:function($object,enable,processesRunning){removeSubmitLoading($object,enable,processesRunning)},scrollToID:function(id){var object=
|
51 |
-
frmFrontForm.scrollMsg(object,false)},scrollMsg:function(id,object,animate){var newPos,m,b,screenTop,screenBottom,scrollObj="";if(typeof object==="undefined"){scrollObj=jQuery(document.getElementById("frm_form_"+id+"_container"));if(scrollObj.length<1)return}else if(typeof id==="string")scrollObj=jQuery(object).find("#frm_field_"+id+"_container");else scrollObj=id;jQuery(scrollObj).trigger("focus");newPos=scrollObj.offset().top;if(!newPos||frm_js.offset==="-1")return;
|
52 |
-
jQuery("html").css("margin-top");b=jQuery("body").css("margin-top");if(m||b)newPos=newPos-parseInt(m)-parseInt(b);if(newPos&&window.innerHeight){screenTop=document.documentElement.scrollTop||document.body.scrollTop;screenBottom=screenTop+window.innerHeight;if(newPos>screenBottom||newPos<screenTop){if(typeof animate==="undefined")jQuery(window).scrollTop(newPos);else jQuery("html,body").animate({scrollTop:newPos},500);return false}}},fieldValueChanged:function(e){var fieldId=
|
53 |
-
false);if(!fieldId||typeof fieldId==="undefined")return;if(e.frmTriggered&&e.frmTriggered==fieldId)return;jQuery(document).trigger("frmFieldChanged",[this,fieldId,e]);if(e.selfTriggered!==true)maybeValidateChange(fieldId,this)},savingDraft:function(object){console.warn("DEPRECATED: function frmFrontForm.savingDraft in v3.0 use frmProForm.savingDraft");if(typeof frmProForm!=="undefined")return frmProForm.savingDraft(object)},goingToPreviousPage:function(object){console.warn("DEPRECATED: function frmFrontForm.goingToPreviousPage in v3.0 use frmProForm.goingToPreviousPage");
|
54 |
if(typeof frmProForm!=="undefined")return frmProForm.goingToPreviousPage(object)},hideOrShowFields:function(){console.warn("DEPRECATED: function frmFrontForm.hideOrShowFields in v3.0 use frmProForm.hideOrShowFields");if(typeof frmProForm!=="undefined")frmProForm.hideOrShowFields()},hidePreviouslyHiddenFields:function(){console.warn("DEPRECATED: function frmFrontForm.hidePreviouslyHiddenFields in v3.0 use frmProForm.hidePreviouslyHiddenFields");if(typeof frmProForm!=="undefined")frmProForm.hidePreviouslyHiddenFields()},
|
55 |
checkDependentDynamicFields:function(ids){console.warn("DEPRECATED: function frmFrontForm.checkDependentDynamicFields in v3.0 use frmProForm.checkDependentDynamicFields");if(typeof frmProForm!=="undefined")frmProForm.checkDependentDynamicFields(ids)},checkDependentLookupFields:function(ids){console.warn("DEPRECATED: function frmFrontForm.checkDependentLookupFields in v3.0 use frmProForm.checkDependentLookupFields");if(typeof frmProForm!=="undefined")frmProForm.checkDependentLookupFields(ids)},loadGoogle:function(){console.warn("DEPRECATED: function frmFrontForm.loadGoogle in v3.0 use frmProForm.loadGoogle");
|
56 |
frmProForm.loadGoogle()},escapeHtml:function(text){return text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},invisible:function(classes){jQuery(classes).css("visibility","hidden")},visible:function(classes){jQuery(classes).css("visibility","visible")}}}frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(){frmFrontForm.init()});
|
16 |
field.value,format=getFieldValidationMessage(field,"pattern");if(format!==""&&text!==""){fieldID=getFieldId(field,true);if(!(fieldID in errors)){format=new RegExp("^"+format+"$","i");if(format.test(text)===false)errors[fieldID]=getFieldValidationMessage(field,"data-invmsg")}}return errors}function hasInvisibleRecaptcha(object){var recaptcha,recaptchaID,alreadyChecked;if(isGoingToPrevPage(object))return false;recaptcha=jQuery(object).find('.frm-g-recaptcha[data-size="invisible"], .g-recaptcha[data-size="invisible"]');
|
17 |
if(recaptcha.length){recaptchaID=recaptcha.data("rid");alreadyChecked=grecaptcha.getResponse(recaptchaID);if(alreadyChecked.length===0)return recaptcha;else return false}else return false}function executeInvisibleRecaptcha(invisibleRecaptcha){var recaptchaID=invisibleRecaptcha.data("rid");grecaptcha.reset(recaptchaID);grecaptcha.execute(recaptchaID)}function validateRecaptcha(form,errors){var recaptchaID,response,fieldContainer,fieldID,$recaptcha=jQuery(form).find(".frm-g-recaptcha");if($recaptcha.length){recaptchaID=
|
18 |
$recaptcha.data("rid");try{response=grecaptcha.getResponse(recaptchaID)}catch(e){if(jQuery(form).find('input[name="recaptcha_checked"]').length)return errors;else response=""}if(response.length===0){fieldContainer=$recaptcha.closest(".frm_form_field");fieldID=fieldContainer.attr("id").replace("frm_field_","").replace("_container","");errors[fieldID]=""}}return errors}function getFieldValidationMessage(field,messageType){var msg,errorHtml;msg=field.getAttribute(messageType);if(null===msg)msg="";if(""!==
|
19 |
+
msg&&shouldWrapErrorHtmlAroundMessageType(messageType)){errorHtml=field.getAttribute("data-error-html");if(null!==errorHtml){errorHtml=errorHtml.replace(/\+/g,"%20");msg=decodeURIComponent(errorHtml).replace("[error]",msg);msg=msg.replace("[key]",getFieldId(field,false))}}return msg}function shouldWrapErrorHtmlAroundMessageType(type){return"pattern"!==type}function shouldJSValidate(object){var validate=jQuery(object).hasClass("frm_js_validate");if(validate&&typeof frmProForm!=="undefined"&&(frmProForm.savingDraft(object)||
|
20 |
+
frmProForm.goingToPreviousPage(object)))validate=false;return validate}function getFormErrors(object,action){var fieldset;if(typeof action==="undefined")jQuery(object).find('input[name="frm_action"]').val();fieldset=jQuery(object).find(".frm_form_field");fieldset.addClass("frm_doing_ajax");jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(object).serialize()+"&action=frm_entries_"+action+"&nonce="+frm_js.nonce,success:function(response){var formID,replaceContent,pageOrder,formReturned,contSubmit,
|
21 |
+
delay,$fieldCont,key,inCollapsedSection,frmTrigger,defaultResponse={"content":"","errors":{},"pass":false};if(response===null)response=defaultResponse;response=response.replace(/^\s+|\s+$/g,"");if(response.indexOf("{")===0)response=JSON.parse(response);else response=defaultResponse;if(typeof response.redirect!=="undefined"){jQuery(document).trigger("frmBeforeFormRedirect",[object,response]);window.location=response.redirect}else if(response.content!==""){removeSubmitLoading(jQuery(object));if(frm_js.offset!=
|
22 |
+
-1)frmFrontForm.scrollMsg(jQuery(object),false);formID=jQuery(object).find('input[name="form_id"]').val();response.content=response.content.replace(/ frm_pro_form /g," frm_pro_form frm_no_hide ");replaceContent=jQuery(object).closest(".frm_forms");removeAddedScripts(replaceContent,formID);delay=maybeSlideOut(replaceContent,response.content);setTimeout(function(){var container,input,previousInput;replaceContent.replaceWith(response.content);addUrlParam(response);if(typeof frmThemeOverride_frmAfterSubmit===
|
23 |
+
"function"){pageOrder=jQuery('input[name="frm_page_order_'+formID+'"]').val();formReturned=jQuery(response.content).find('input[name="form_id"]').val();frmThemeOverride_frmAfterSubmit(formReturned,pageOrder,response.content,object)}if(typeof response.recaptcha!=="undefined"){container=jQuery("#frm_form_"+formID+"_container").find(".frm_fields_container");input='<input type="hidden" name="recaptcha_checked" value="'+response.recaptcha+'">';previousInput=container.find('input[name="recaptcha_checked"]');
|
24 |
+
if(previousInput.length)previousInput.replaceWith(input);else container.append(input)}afterFormSubmitted(object,response)},delay)}else if(Object.keys(response.errors).length){removeSubmitLoading(jQuery(object),"enable");contSubmit=true;removeAllErrors();$fieldCont=null;for(key in response.errors){$fieldCont=jQuery(object).find("#frm_field_"+key+"_container");if($fieldCont.length){if(!$fieldCont.is(":visible")){inCollapsedSection=$fieldCont.closest(".frm_toggle_container");if(inCollapsedSection.length){frmTrigger=
|
25 |
+
inCollapsedSection.prev();if(!frmTrigger.hasClass("frm_trigger"))frmTrigger=frmTrigger.prev(".frm_trigger");frmTrigger.trigger("click")}}if($fieldCont.is(":visible")){addFieldError($fieldCont,key,response.errors);contSubmit=false}}}jQuery(object).find(".frm-g-recaptcha, .g-recaptcha").each(function(){var $recaptcha=jQuery(this),recaptchaID=$recaptcha.data("rid");if(typeof grecaptcha!=="undefined"&&grecaptcha)if(recaptchaID)grecaptcha.reset(recaptchaID);else grecaptcha.reset()});jQuery(document).trigger("frmFormErrors",
|
26 |
+
[object,response]);fieldset.removeClass("frm_doing_ajax");scrollToFirstField(object);if(contSubmit)object.submit();else{jQuery(object).prepend(response.error_message);checkForErrorsAndMaybeSetFocus()}}else{showFileLoading(object);object.submit()}},error:function(){jQuery(object).find('input[type="submit"], input[type="button"]').prop("disabled",false);object.submit()}})}function afterFormSubmitted(object,response){var formCompleted=jQuery(response.content).find(".frm_message");if(formCompleted.length)jQuery(document).trigger("frmFormComplete",
|
27 |
+
[object,response]);else jQuery(document).trigger("frmPageChanged",[object,response])}function removeAddedScripts(formContainer,formID){var endReplace=jQuery(".frm_end_ajax_"+formID);if(endReplace.length){formContainer.nextUntil(".frm_end_ajax_"+formID).remove();endReplace.remove()}}function maybeSlideOut(oldContent,newContent){var c,newClass="frm_slideout";if(newContent.indexOf(" frm_slide")!==-1){c=oldContent.children();if(newContent.indexOf(" frm_going_back")!==-1)newClass+=" frm_going_back";c.removeClass("frm_going_back");
|
28 |
+
c.addClass(newClass);return 300}return 0}function addUrlParam(response){var url;if(history.pushState&&typeof response.page!=="undefined"){url=addQueryVar("frm_page",response.page);window.history.pushState({"html":response.html},"","?"+url)}}function addQueryVar(key,value){var kvp,i,x;key=encodeURI(key);value=encodeURI(value);kvp=document.location.search.substr(1).split("&");i=kvp.length;while(i--){x=kvp[i].split("=");if(x[0]==key){x[1]=value;kvp[i]=x.join("=");break}}if(i<0)kvp[kvp.length]=[key,value].join("=");
|
29 |
+
return kvp.join("&")}function addFieldError($fieldCont,key,jsErrors){var input,id,describedBy;if($fieldCont.length&&$fieldCont.is(":visible")){$fieldCont.addClass("frm_blank_field");input=$fieldCont.find("input, select, textarea");id="frm_error_field_"+key;describedBy=input.attr("aria-describedby");if(typeof frmThemeOverride_frmPlaceError==="function")frmThemeOverride_frmPlaceError(key,jsErrors);else{if(-1!==jsErrors[key].indexOf("<div"))$fieldCont.append(jsErrors[key]);else $fieldCont.append('<div class="frm_error" id="'+
|
30 |
+
id+'">'+jsErrors[key]+"</div>");if(typeof describedBy==="undefined")describedBy=id;else if(describedBy.indexOf(id)===-1)describedBy=describedBy+" "+id;input.attr("aria-describedby",describedBy)}input.attr("aria-invalid",true);jQuery(document).trigger("frmAddFieldError",[$fieldCont,key,jsErrors])}}function removeFieldError($fieldCont){var errorMessage=$fieldCont.find(".frm_error"),errorId=errorMessage.attr("id"),input=$fieldCont.find("input, select, textarea"),describedBy=input.attr("aria-describedby");
|
31 |
+
$fieldCont.removeClass("frm_blank_field has-error");errorMessage.remove();input.attr("aria-invalid",false);if(typeof describedBy!=="undefined"){describedBy=describedBy.replace(errorId,"");input.attr("aria-describedby",describedBy)}}function removeAllErrors(){jQuery(".form-field").removeClass("frm_blank_field has-error");jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function scrollToFirstField(object){var field=jQuery(object).find(".frm_blank_field").first();
|
32 |
+
if(field.length)frmFrontForm.scrollMsg(field,object,true)}function showSubmitLoading($object){showLoadingIndicator($object);disableSubmitButton($object);disableSaveDraft($object)}function showLoadingIndicator($object){if(!$object.hasClass("frm_loading_form")&&!$object.hasClass("frm_loading_prev")){addLoadingClass($object);$object.trigger("frmStartFormLoading")}}function addLoadingClass($object){var loadingClass=isGoingToPrevPage($object)?"frm_loading_prev":"frm_loading_form";$object.addClass(loadingClass)}
|
33 |
+
function isGoingToPrevPage($object){return typeof frmProForm!=="undefined"&&frmProForm.goingToPreviousPage($object)}function removeSubmitLoading($object,enable,processesRunning){var loadingForm;if(processesRunning>0)return;loadingForm=jQuery(".frm_loading_form");loadingForm.removeClass("frm_loading_form");loadingForm.removeClass("frm_loading_prev");loadingForm.trigger("frmEndFormLoading");if(enable==="enable"){enableSubmitButton(loadingForm);enableSaveDraft(loadingForm)}}function showFileLoading(object){var fileval,
|
34 |
+
loading=document.getElementById("frm_loading");if(loading!==null){fileval=jQuery(object).find("input[type=file]").val();if(typeof fileval!=="undefined"&&fileval!=="")setTimeout(function(){jQuery(loading).fadeIn("slow")},2E3)}}function clearDefault(){toggleDefault(jQuery(this),"clear")}function replaceDefault(){toggleDefault(jQuery(this),"replace")}function toggleDefault($thisField,e){var thisVal,v=$thisField.data("frmval").replace(/(\n|\r\n)/g,"\r");if(v===""||typeof v==="undefined")return false;
|
35 |
+
thisVal=$thisField.val().replace(/(\n|\r\n)/g,"\r");if("replace"===e){if(thisVal==="")$thisField.addClass("frm_default").val(v)}else if(thisVal==v)$thisField.removeClass("frm_default").val("")}function resendEmail(){var $link=jQuery(this),entryId=this.getAttribute("data-eid"),formId=this.getAttribute("data-fid"),label=$link.find(".frm_link_label");if(label.length<1)label=$link;label.append('<span class="frm-wait"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",
|
36 |
+
entry_id:entryId,form_id:formId,nonce:frm_js.nonce},success:function(msg){var admin=document.getElementById("wpbody");if(admin===null)label.html(msg);else{label.html("");$link.after(msg)}}});return false}function confirmClick(){var message=jQuery(this).data("frmconfirm");return confirm(message)}function toggleDiv(){var div=jQuery(this).data("frmtoggle");if(jQuery(div).is(":visible"))jQuery(div).slideUp("fast");else jQuery(div).slideDown("fast");return false}function addIndexOfFallbackForIE8(){var len,
|
37 |
+
from;if(!Array.prototype.indexOf)Array.prototype.indexOf=function(elt){len=this.length>>>0;from=Number(arguments[1])||0;from=from<0?Math.ceil(from):Math.floor(from);if(from<0)from+=len;for(;from<len;from++)if(from in this&&this[from]===elt)return from;return-1}}function addTrimFallbackForIE8(){if(typeof String.prototype.trim!=="function")String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}function addFilterFallbackForIE8(){var t,len,res,thisp,i,val;if(!Array.prototype.filter)Array.prototype.filter=
|
38 |
+
function(fun){if(this===void 0||this===null)throw new TypeError;t=Object(this);len=t.length>>>0;if(typeof fun!=="function")throw new TypeError;res=[];thisp=arguments[1];for(i=0;i<len;i++)if(i in t){val=t[i];if(fun.call(thisp,val,i,t))res.push(val)}return res}}function addKeysFallbackForIE8(){var keys,i;if(!Object.keys)Object.keys=function(obj){keys=[];for(i in obj)if(obj.hasOwnProperty(i))keys.push(i);return keys}}function onHoneypotFieldChange(){var css=jQuery(this).css("box-shadow");if(css.match(/inset/))this.parentNode.removeChild(this)}
|
39 |
+
function changeFocusWhenClickComboFieldLabel(){var label;var comboInputsContainer=document.querySelectorAll(".frm_combo_inputs_container");comboInputsContainer.forEach(function(inputsContainer){if(!inputsContainer.closest(".frm_form_field"))return;label=inputsContainer.closest(".frm_form_field").querySelector(".frm_primary_label");if(!label)return;label.addEventListener("click",function(e){inputsContainer.querySelector(".frm_form_field:first-child input, .frm_form_field:first-child select, .frm_form_field:first-child textarea").focus()})})}
|
40 |
+
function checkForErrorsAndMaybeSetFocus(){var errors,element,timeoutCallback;errors=document.querySelectorAll(".frm_form_field .frm_error");if(!errors.length)return;element=errors[0];do{element=element.previousSibling;if(-1!==["input","select","textarea"].indexOf(element.nodeName.toLowerCase())){element.focus();break}if("undefined"!==typeof element.classList){if(element.classList.contains("html-active"))timeoutCallback=function(){var textarea=element.querySelector("textarea");if(null!==textarea)textarea.focus()};
|
41 |
+
else if(element.classList.contains("tmce-active"))timeoutCallback=function(){tinyMCE.activeEditor.focus()};if("function"===typeof timeoutCallback){setTimeout(timeoutCallback,0);break}}}while(element.previousSibling)}return{init:function(){jQuery(document).off("submit.formidable",".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){if(jQuery(this).val()==="")jQuery(this).trigger("blur")});
|
42 |
+
jQuery(document).on("focus",".frm_toggle_default",clearDefault);jQuery(document).on("blur",".frm_toggle_default",replaceDefault);jQuery(".frm_toggle_default").trigger("blur");jQuery(document.getElementById("frm_resend_email")).on("click",resendEmail);jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',frmFrontForm.fieldValueChanged);jQuery(document).on("change keyup",".frm-show-form .frm_inside_container input, .frm-show-form .frm_inside_container select, .frm-show-form .frm_inside_container textarea",
|
43 |
+
maybeShowLabel);jQuery(document).on("change","[id^=frm_email_]",onHoneypotFieldChange);jQuery(document).on("click","a[data-frmconfirm]",confirmClick);jQuery("a[data-frmtoggle]").on("click",toggleDiv);checkForErrorsAndMaybeSetFocus();changeFocusWhenClickComboFieldLabel();addIndexOfFallbackForIE8();addTrimFallbackForIE8();addFilterFallbackForIE8();addKeysFallbackForIE8()},getFieldId:function(field,fullID){return getFieldId(field,fullID)},renderRecaptcha:function(captcha){var formID,recaptchaID,size=
|
44 |
+
captcha.getAttribute("data-size"),rendered=captcha.getAttribute("data-rid")!==null,params={"sitekey":captcha.getAttribute("data-sitekey"),"size":size,"theme":captcha.getAttribute("data-theme")};if(rendered)return;if(size==="invisible"){formID=jQuery(captcha).closest("form").find('input[name="form_id"]').val();jQuery(captcha).closest(".frm_form_field .frm_primary_label").hide();params.callback=function(token){frmFrontForm.afterRecaptcha(token,formID)}}recaptchaID=grecaptcha.render(captcha.id,params);
|
45 |
+
captcha.setAttribute("data-rid",recaptchaID)},afterSingleRecaptcha:function(){var object=jQuery(".frm-show-form .g-recaptcha").closest("form")[0];frmFrontForm.submitFormNow(object)},afterRecaptcha:function(token,formID){var object=jQuery("#frm_form_"+formID+"_container form")[0];frmFrontForm.submitFormNow(object)},submitForm:function(e){frmFrontForm.submitFormManual(e,this)},submitFormManual:function(e,object){var isPro,errors,invisibleRecaptcha=hasInvisibleRecaptcha(object),classList=object.className.trim().split(/\s+/gi);
|
46 |
+
if(classList&&invisibleRecaptcha.length<1){isPro=classList.indexOf("frm_pro_form")>-1;if(!isPro)return}if(jQuery("body").hasClass("wp-admin")&&jQuery(object).closest(".frmapi-form").length<1)return;e.preventDefault();if(typeof frmProForm!=="undefined"&&typeof frmProForm.submitAllowed==="function")if(!frmProForm.submitAllowed(object))return;if(invisibleRecaptcha.length){showLoadingIndicator(jQuery(object));executeInvisibleRecaptcha(invisibleRecaptcha)}else{errors=frmFrontForm.validateFormSubmit(object);
|
47 |
+
if(Object.keys(errors).length===0){showSubmitLoading(jQuery(object));frmFrontForm.submitFormNow(object,classList)}}},submitFormNow:function(object){var hasFileFields,antispamInput,classList=object.className.trim().split(/\s+/gi);if(object.hasAttribute("data-token")&&null===object.querySelector('[name="antispam_token"]')){antispamInput=document.createElement("input");antispamInput.type="hidden";antispamInput.name="antispam_token";antispamInput.value=object.getAttribute("data-token");object.appendChild(antispamInput)}if(classList.indexOf("frm_ajax_submit")>
|
48 |
+
-1){hasFileFields=jQuery(object).find('input[type="file"]').filter(function(){return!!this.value}).length;if(hasFileFields<1){action=jQuery(object).find('input[name="frm_action"]').val();frmFrontForm.checkFormErrors(object,action)}else object.submit()}else object.submit()},validateFormSubmit:function(object){if(typeof tinyMCE!=="undefined"&&jQuery(object).find(".wp-editor-wrap").length)tinyMCE.triggerSave();jsErrors=[];if(shouldJSValidate(object)){frmFrontForm.getAjaxFormErrors(object);if(Object.keys(jsErrors).length)frmFrontForm.addAjaxFormErrors(object)}return jsErrors},
|
49 |
+
getAjaxFormErrors:function(object){var customErrors,key;jsErrors=validateForm(object);if(typeof frmThemeOverride_jsErrors==="function"){action=jQuery(object).find('input[name="frm_action"]').val();customErrors=frmThemeOverride_jsErrors(action,object);if(Object.keys(customErrors).length)for(key in customErrors)jsErrors[key]=customErrors[key]}return jsErrors},addAjaxFormErrors:function(object){var key,$fieldCont;removeAllErrors();for(key in jsErrors){$fieldCont=jQuery(object).find("#frm_field_"+key+
|
50 |
+
"_container");if($fieldCont.length)addFieldError($fieldCont,key,jsErrors);else delete jsErrors[key]}scrollToFirstField(object);checkForErrorsAndMaybeSetFocus()},checkFormErrors:function(object,action){getFormErrors(object,action)},checkRequiredField:function(field,errors){return checkRequiredField(field,errors)},showSubmitLoading:function($object){showSubmitLoading($object)},removeSubmitLoading:function($object,enable,processesRunning){removeSubmitLoading($object,enable,processesRunning)},scrollToID:function(id){var object=
|
51 |
+
jQuery(document.getElementById(id));frmFrontForm.scrollMsg(object,false)},scrollMsg:function(id,object,animate){var newPos,m,b,screenTop,screenBottom,scrollObj="";if(typeof object==="undefined"){scrollObj=jQuery(document.getElementById("frm_form_"+id+"_container"));if(scrollObj.length<1)return}else if(typeof id==="string")scrollObj=jQuery(object).find("#frm_field_"+id+"_container");else scrollObj=id;jQuery(scrollObj).trigger("focus");newPos=scrollObj.offset().top;if(!newPos||frm_js.offset==="-1")return;
|
52 |
+
newPos=newPos-frm_js.offset;m=jQuery("html").css("margin-top");b=jQuery("body").css("margin-top");if(m||b)newPos=newPos-parseInt(m)-parseInt(b);if(newPos&&window.innerHeight){screenTop=document.documentElement.scrollTop||document.body.scrollTop;screenBottom=screenTop+window.innerHeight;if(newPos>screenBottom||newPos<screenTop){if(typeof animate==="undefined")jQuery(window).scrollTop(newPos);else jQuery("html,body").animate({scrollTop:newPos},500);return false}}},fieldValueChanged:function(e){var fieldId=
|
53 |
+
frmFrontForm.getFieldId(this,false);if(!fieldId||typeof fieldId==="undefined")return;if(e.frmTriggered&&e.frmTriggered==fieldId)return;jQuery(document).trigger("frmFieldChanged",[this,fieldId,e]);if(e.selfTriggered!==true)maybeValidateChange(fieldId,this)},savingDraft:function(object){console.warn("DEPRECATED: function frmFrontForm.savingDraft in v3.0 use frmProForm.savingDraft");if(typeof frmProForm!=="undefined")return frmProForm.savingDraft(object)},goingToPreviousPage:function(object){console.warn("DEPRECATED: function frmFrontForm.goingToPreviousPage in v3.0 use frmProForm.goingToPreviousPage");
|
54 |
if(typeof frmProForm!=="undefined")return frmProForm.goingToPreviousPage(object)},hideOrShowFields:function(){console.warn("DEPRECATED: function frmFrontForm.hideOrShowFields in v3.0 use frmProForm.hideOrShowFields");if(typeof frmProForm!=="undefined")frmProForm.hideOrShowFields()},hidePreviouslyHiddenFields:function(){console.warn("DEPRECATED: function frmFrontForm.hidePreviouslyHiddenFields in v3.0 use frmProForm.hidePreviouslyHiddenFields");if(typeof frmProForm!=="undefined")frmProForm.hidePreviouslyHiddenFields()},
|
55 |
checkDependentDynamicFields:function(ids){console.warn("DEPRECATED: function frmFrontForm.checkDependentDynamicFields in v3.0 use frmProForm.checkDependentDynamicFields");if(typeof frmProForm!=="undefined")frmProForm.checkDependentDynamicFields(ids)},checkDependentLookupFields:function(ids){console.warn("DEPRECATED: function frmFrontForm.checkDependentLookupFields in v3.0 use frmProForm.checkDependentLookupFields");if(typeof frmProForm!=="undefined")frmProForm.checkDependentLookupFields(ids)},loadGoogle:function(){console.warn("DEPRECATED: function frmFrontForm.loadGoogle in v3.0 use frmProForm.loadGoogle");
|
56 |
frmProForm.loadGoogle()},escapeHtml:function(text){return text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},invisible:function(classes){jQuery(classes).css("visibility","hidden")},visible:function(classes){jQuery(classes).css("visibility","visible")}}}frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(){frmFrontForm.init()});
|
js/formidable_admin.js
CHANGED
@@ -1954,6 +1954,9 @@ function frmAdminBuildJS() {
|
|
1954 |
if ( null === ul ) {
|
1955 |
return;
|
1956 |
}
|
|
|
|
|
|
|
1957 |
if ( 0 === ul.children.length ) {
|
1958 |
fillFieldActionDropdown( ul, true === isFieldGroup );
|
1959 |
}
|
@@ -1981,18 +1984,21 @@ function frmAdminBuildJS() {
|
|
1981 |
}
|
1982 |
options.forEach(
|
1983 |
function( option ) {
|
1984 |
-
var li, span;
|
1985 |
li = document.createElement( 'li' );
|
1986 |
-
li.classList.add( 'frm_dropdown_li'
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
-
|
|
|
1991 |
span = document.createElement( 'span' );
|
1992 |
span.textContent = option.label;
|
1993 |
-
|
1994 |
-
|
1995 |
-
|
|
|
|
|
1996 |
ul.appendChild( li );
|
1997 |
}
|
1998 |
);
|
1954 |
if ( null === ul ) {
|
1955 |
return;
|
1956 |
}
|
1957 |
+
if ( null === ul.getAttribute( 'aria-label' ) ) {
|
1958 |
+
ul.setAttribute( 'aria-label', __( 'More Options', 'formidable' ) );
|
1959 |
+
}
|
1960 |
if ( 0 === ul.children.length ) {
|
1961 |
fillFieldActionDropdown( ul, true === isFieldGroup );
|
1962 |
}
|
1984 |
}
|
1985 |
options.forEach(
|
1986 |
function( option ) {
|
1987 |
+
var li, anchor, span;
|
1988 |
li = document.createElement( 'li' );
|
1989 |
+
li.classList.add( 'frm_dropdown_li' );
|
1990 |
+
|
1991 |
+
anchor = document.createElement( 'a' );
|
1992 |
+
anchor.classList.add( option.class + classSuffix );
|
1993 |
+
anchor.setAttribute( 'href', '#' );
|
1994 |
+
|
1995 |
span = document.createElement( 'span' );
|
1996 |
span.textContent = option.label;
|
1997 |
+
anchor.innerHTML = '<svg class="frmsvg"><use xlink:href="#' + option.icon + '"></use></svg>';
|
1998 |
+
anchor.appendChild( document.createTextNode( ' ' ) );
|
1999 |
+
anchor.appendChild( span );
|
2000 |
+
|
2001 |
+
li.appendChild( anchor );
|
2002 |
ul.appendChild( li );
|
2003 |
}
|
2004 |
);
|
languages/formidable.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Formidable Forms plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Formidable Forms 5.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/formidable\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2021-09-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: formidable\n"
|
@@ -137,7 +137,7 @@ msgstr ""
|
|
137 |
|
138 |
#: classes/controllers/FrmAddonsController.php:21
|
139 |
#: classes/controllers/FrmAddonsController.php:22
|
140 |
-
#: classes/helpers/FrmFormsHelper.php:
|
141 |
#: classes/views/frm-fields/back-end/smart-values.php:16
|
142 |
#: classes/views/shared/admin-header.php:33
|
143 |
msgid "Upgrade"
|
@@ -272,23 +272,23 @@ msgstr ""
|
|
272 |
msgid "Entry was Successfully Deleted"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: classes/controllers/FrmFieldsController.php:
|
276 |
msgid "Default Value (Text)"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: classes/controllers/FrmFieldsController.php:
|
280 |
msgid "Default Value (Calculation)"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: classes/controllers/FrmFieldsController.php:
|
284 |
msgid "Calculator forms"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: classes/controllers/FrmFieldsController.php:
|
288 |
msgid "Default Value (Lookup)"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: classes/controllers/FrmFieldsController.php:
|
292 |
msgid "Lookup fields"
|
293 |
msgstr ""
|
294 |
|
@@ -465,7 +465,7 @@ msgid "Date"
|
|
465 |
msgstr ""
|
466 |
|
467 |
#: classes/controllers/FrmFormsController.php:897
|
468 |
-
#: classes/helpers/FrmFormsHelper.php:
|
469 |
msgid "My Templates"
|
470 |
msgstr ""
|
471 |
|
@@ -665,15 +665,11 @@ msgstr ""
|
|
665 |
msgid "Inbox"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: classes/controllers/FrmInboxController.php:
|
669 |
-
msgid "Go to Global Settings"
|
670 |
-
msgstr ""
|
671 |
-
|
672 |
-
#: classes/controllers/FrmInboxController.php:57
|
673 |
msgid "Dismiss All"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: classes/controllers/FrmInboxController.php:
|
677 |
msgid "Help Formidable improve with usage tracking"
|
678 |
msgstr ""
|
679 |
|
@@ -1224,7 +1220,7 @@ msgstr ""
|
|
1224 |
#: classes/views/frm-forms/new-form-overlay.php:139
|
1225 |
#: classes/views/shared/admin-header.php:64
|
1226 |
#: classes/views/shared/confirm-overlay.php:19
|
1227 |
-
#: js/formidable_admin.js:
|
1228 |
msgid "Cancel"
|
1229 |
msgstr ""
|
1230 |
|
@@ -1251,7 +1247,7 @@ msgstr ""
|
|
1251 |
|
1252 |
#: classes/helpers/FrmAppHelper.php:2514
|
1253 |
#: classes/helpers/FrmListHelper.php:405
|
1254 |
-
#: js/formidable_admin.js:
|
1255 |
msgid "Heads up"
|
1256 |
msgstr ""
|
1257 |
|
@@ -1352,7 +1348,7 @@ msgid "The parameter \"%s\" is reserved by WordPress. This may cause problems wh
|
|
1352 |
msgstr ""
|
1353 |
|
1354 |
#: classes/helpers/FrmAppHelper.php:2544
|
1355 |
-
#: classes/helpers/FrmFormsHelper.php:
|
1356 |
msgid "See the list of reserved words in WordPress."
|
1357 |
msgstr ""
|
1358 |
|
@@ -1670,7 +1666,7 @@ msgid "Updated By"
|
|
1670 |
msgstr ""
|
1671 |
|
1672 |
#: classes/helpers/FrmCSVExportHelper.php:227
|
1673 |
-
#: classes/helpers/FrmFormsHelper.php:
|
1674 |
#: classes/helpers/FrmFormsListHelper.php:342
|
1675 |
msgid "Draft"
|
1676 |
msgstr ""
|
@@ -1759,7 +1755,7 @@ msgstr ""
|
|
1759 |
#: classes/helpers/FrmFormsHelper.php:1134
|
1760 |
#: classes/helpers/FrmFormsListHelper.php:133
|
1761 |
#: classes/views/frm-form-actions/form_action.php:25
|
1762 |
-
#: js/formidable_admin.js:
|
1763 |
msgid "Delete"
|
1764 |
msgstr ""
|
1765 |
|
@@ -3121,7 +3117,7 @@ msgid "Move Form to Trash"
|
|
3121 |
msgstr ""
|
3122 |
|
3123 |
#: classes/helpers/FrmFormsHelper.php:1127
|
3124 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3125 |
#: classes/helpers/FrmFormsListHelper.php:158
|
3126 |
msgid "Trash"
|
3127 |
msgstr ""
|
@@ -3210,33 +3206,33 @@ msgstr ""
|
|
3210 |
msgid "Automatically capitalize the first letter in each word."
|
3211 |
msgstr ""
|
3212 |
|
3213 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3214 |
msgid "Published"
|
3215 |
msgstr ""
|
3216 |
|
3217 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3218 |
msgid "Create Form"
|
3219 |
msgstr ""
|
3220 |
|
3221 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3222 |
msgid "Renew"
|
3223 |
msgstr ""
|
3224 |
|
3225 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3226 |
msgid "License plan required:"
|
3227 |
msgstr ""
|
3228 |
|
3229 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3230 |
msgid "Is this intentional?"
|
3231 |
msgstr ""
|
3232 |
|
3233 |
#. translators: %s: the name of a single parameter in the redirect URL
|
3234 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3235 |
msgid "The redirect URL is using the parameter \"%s\", which is reserved by WordPress. "
|
3236 |
msgstr ""
|
3237 |
|
3238 |
#. translators: %s: the names of two or more parameters in the redirect URL, separated by commas
|
3239 |
-
#: classes/helpers/FrmFormsHelper.php:
|
3240 |
msgid "The redirect URL is using the parameters \"%s\", which are reserved by WordPress. "
|
3241 |
msgstr ""
|
3242 |
|
@@ -4488,7 +4484,7 @@ msgstr ""
|
|
4488 |
#: classes/views/frm-fields/back-end/inline-modal.php:7
|
4489 |
#: classes/views/frm-fields/back-end/inline-modal.php:8
|
4490 |
#: classes/views/shared/admin-header.php:19
|
4491 |
-
#: js/formidable_admin.js:
|
4492 |
msgid "Close"
|
4493 |
msgstr ""
|
4494 |
|
@@ -4772,7 +4768,7 @@ msgid "Conditional emails"
|
|
4772 |
msgstr ""
|
4773 |
|
4774 |
#: classes/views/frm-form-actions/form_action.php:21
|
4775 |
-
#: js/formidable_admin.js:
|
4776 |
msgid "Duplicate"
|
4777 |
msgstr ""
|
4778 |
|
@@ -4898,6 +4894,7 @@ msgstr ""
|
|
4898 |
|
4899 |
#: classes/views/frm-forms/add_field.php:29
|
4900 |
#: js/formidable_admin.js:1199
|
|
|
4901 |
msgid "More Options"
|
4902 |
msgstr ""
|
4903 |
|
@@ -5445,27 +5442,15 @@ msgstr ""
|
|
5445 |
msgid "Don't use form styling on any page"
|
5446 |
msgstr ""
|
5447 |
|
5448 |
-
#: classes/views/frm-settings/general.php:
|
5449 |
-
msgid "Do not use CSS Grids for form layouts"
|
5450 |
-
msgstr ""
|
5451 |
-
|
5452 |
-
#: classes/views/frm-settings/general.php:39
|
5453 |
-
msgid "Form layouts built using CSS grids that are not fully supported by older browsers like Internet Explorer. Leave this box unchecked for your layouts to look best in current browsers, but show in a single column in older browsers."
|
5454 |
-
msgstr ""
|
5455 |
-
|
5456 |
-
#: classes/views/frm-settings/general.php:43
|
5457 |
-
msgid "Warning: This setting is deprecated. It will be removed when it is turned off."
|
5458 |
-
msgstr ""
|
5459 |
-
|
5460 |
-
#: classes/views/frm-settings/general.php:52
|
5461 |
msgid "Other"
|
5462 |
msgstr ""
|
5463 |
|
5464 |
-
#: classes/views/frm-settings/general.php:
|
5465 |
msgid "Do not store IPs with form submissions. Check this box for to assist with GDPR compliance."
|
5466 |
msgstr ""
|
5467 |
|
5468 |
-
#: classes/views/frm-settings/general.php:
|
5469 |
msgid "Do not include Formidable in the admin bar."
|
5470 |
msgstr ""
|
5471 |
|
@@ -6278,51 +6263,51 @@ msgstr ""
|
|
6278 |
msgid "Error"
|
6279 |
msgstr ""
|
6280 |
|
6281 |
-
#: js/formidable_admin.js:
|
6282 |
msgid "Field settings"
|
6283 |
msgstr ""
|
6284 |
|
6285 |
-
#: js/formidable_admin.js:
|
6286 |
msgid "Delete Group"
|
6287 |
msgstr ""
|
6288 |
|
6289 |
-
#: js/formidable_admin.js:
|
6290 |
msgid "Duplicate Group"
|
6291 |
msgstr ""
|
6292 |
|
6293 |
-
#: js/formidable_admin.js:
|
6294 |
msgid "Custom layout"
|
6295 |
msgstr ""
|
6296 |
|
6297 |
-
#: js/formidable_admin.js:
|
6298 |
msgid "Break into rows"
|
6299 |
msgstr ""
|
6300 |
|
6301 |
-
#: js/formidable_admin.js:
|
6302 |
msgid "Row Layout"
|
6303 |
msgstr ""
|
6304 |
|
6305 |
-
#: js/formidable_admin.js:
|
6306 |
msgid "Enter number of columns for each field"
|
6307 |
msgstr ""
|
6308 |
|
6309 |
-
#: js/formidable_admin.js:
|
6310 |
msgid "Layouts are based on a 12-column grid system"
|
6311 |
msgstr ""
|
6312 |
|
6313 |
-
#: js/formidable_admin.js:
|
6314 |
msgid "Save"
|
6315 |
msgstr ""
|
6316 |
|
6317 |
-
#: js/formidable_admin.js:
|
6318 |
msgid "Merge into row"
|
6319 |
msgstr ""
|
6320 |
|
6321 |
#. translators: %1$s: Number of fields that are selected to be deleted.
|
6322 |
-
#: js/formidable_admin.js:
|
6323 |
msgid "Are you sure you want to delete these %1$s selected fields?"
|
6324 |
msgstr ""
|
6325 |
|
6326 |
-
#: js/formidable_admin.js:
|
6327 |
msgid "Save and Reload"
|
6328 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Formidable Forms plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Formidable Forms 5.0.05\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/formidable\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2021-09-20T16:50:03+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: formidable\n"
|
137 |
|
138 |
#: classes/controllers/FrmAddonsController.php:21
|
139 |
#: classes/controllers/FrmAddonsController.php:22
|
140 |
+
#: classes/helpers/FrmFormsHelper.php:1311
|
141 |
#: classes/views/frm-fields/back-end/smart-values.php:16
|
142 |
#: classes/views/shared/admin-header.php:33
|
143 |
msgid "Upgrade"
|
272 |
msgid "Entry was Successfully Deleted"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: classes/controllers/FrmFieldsController.php:340
|
276 |
msgid "Default Value (Text)"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: classes/controllers/FrmFieldsController.php:347
|
280 |
msgid "Default Value (Calculation)"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: classes/controllers/FrmFieldsController.php:351
|
284 |
msgid "Calculator forms"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: classes/controllers/FrmFieldsController.php:356
|
288 |
msgid "Default Value (Lookup)"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: classes/controllers/FrmFieldsController.php:360
|
292 |
msgid "Lookup fields"
|
293 |
msgstr ""
|
294 |
|
465 |
msgstr ""
|
466 |
|
467 |
#: classes/controllers/FrmFormsController.php:897
|
468 |
+
#: classes/helpers/FrmFormsHelper.php:1254
|
469 |
msgid "My Templates"
|
470 |
msgstr ""
|
471 |
|
665 |
msgid "Inbox"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: classes/controllers/FrmInboxController.php:38
|
|
|
|
|
|
|
|
|
669 |
msgid "Dismiss All"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: classes/controllers/FrmInboxController.php:96
|
673 |
msgid "Help Formidable improve with usage tracking"
|
674 |
msgstr ""
|
675 |
|
1220 |
#: classes/views/frm-forms/new-form-overlay.php:139
|
1221 |
#: classes/views/shared/admin-header.php:64
|
1222 |
#: classes/views/shared/confirm-overlay.php:19
|
1223 |
+
#: js/formidable_admin.js:3619
|
1224 |
msgid "Cancel"
|
1225 |
msgstr ""
|
1226 |
|
1247 |
|
1248 |
#: classes/helpers/FrmAppHelper.php:2514
|
1249 |
#: classes/helpers/FrmListHelper.php:405
|
1250 |
+
#: js/formidable_admin.js:4001
|
1251 |
msgid "Heads up"
|
1252 |
msgstr ""
|
1253 |
|
1348 |
msgstr ""
|
1349 |
|
1350 |
#: classes/helpers/FrmAppHelper.php:2544
|
1351 |
+
#: classes/helpers/FrmFormsHelper.php:1485
|
1352 |
msgid "See the list of reserved words in WordPress."
|
1353 |
msgstr ""
|
1354 |
|
1666 |
msgstr ""
|
1667 |
|
1668 |
#: classes/helpers/FrmCSVExportHelper.php:227
|
1669 |
+
#: classes/helpers/FrmFormsHelper.php:1212
|
1670 |
#: classes/helpers/FrmFormsListHelper.php:342
|
1671 |
msgid "Draft"
|
1672 |
msgstr ""
|
1755 |
#: classes/helpers/FrmFormsHelper.php:1134
|
1756 |
#: classes/helpers/FrmFormsListHelper.php:133
|
1757 |
#: classes/views/frm-form-actions/form_action.php:25
|
1758 |
+
#: js/formidable_admin.js:2009
|
1759 |
msgid "Delete"
|
1760 |
msgstr ""
|
1761 |
|
3117 |
msgstr ""
|
3118 |
|
3119 |
#: classes/helpers/FrmFormsHelper.php:1127
|
3120 |
+
#: classes/helpers/FrmFormsHelper.php:1213
|
3121 |
#: classes/helpers/FrmFormsListHelper.php:158
|
3122 |
msgid "Trash"
|
3123 |
msgstr ""
|
3206 |
msgid "Automatically capitalize the first letter in each word."
|
3207 |
msgstr ""
|
3208 |
|
3209 |
+
#: classes/helpers/FrmFormsHelper.php:1214
|
3210 |
msgid "Published"
|
3211 |
msgstr ""
|
3212 |
|
3213 |
+
#: classes/helpers/FrmFormsHelper.php:1298
|
3214 |
msgid "Create Form"
|
3215 |
msgstr ""
|
3216 |
|
3217 |
+
#: classes/helpers/FrmFormsHelper.php:1306
|
3218 |
msgid "Renew"
|
3219 |
msgstr ""
|
3220 |
|
3221 |
+
#: classes/helpers/FrmFormsHelper.php:1370
|
3222 |
msgid "License plan required:"
|
3223 |
msgstr ""
|
3224 |
|
3225 |
+
#: classes/helpers/FrmFormsHelper.php:1484
|
3226 |
msgid "Is this intentional?"
|
3227 |
msgstr ""
|
3228 |
|
3229 |
#. translators: %s: the name of a single parameter in the redirect URL
|
3230 |
+
#: classes/helpers/FrmFormsHelper.php:1494
|
3231 |
msgid "The redirect URL is using the parameter \"%s\", which is reserved by WordPress. "
|
3232 |
msgstr ""
|
3233 |
|
3234 |
#. translators: %s: the names of two or more parameters in the redirect URL, separated by commas
|
3235 |
+
#: classes/helpers/FrmFormsHelper.php:1500
|
3236 |
msgid "The redirect URL is using the parameters \"%s\", which are reserved by WordPress. "
|
3237 |
msgstr ""
|
3238 |
|
4484 |
#: classes/views/frm-fields/back-end/inline-modal.php:7
|
4485 |
#: classes/views/frm-fields/back-end/inline-modal.php:8
|
4486 |
#: classes/views/shared/admin-header.php:19
|
4487 |
+
#: js/formidable_admin.js:7567
|
4488 |
msgid "Close"
|
4489 |
msgstr ""
|
4490 |
|
4768 |
msgstr ""
|
4769 |
|
4770 |
#: classes/views/frm-form-actions/form_action.php:21
|
4771 |
+
#: js/formidable_admin.js:2015
|
4772 |
msgid "Duplicate"
|
4773 |
msgstr ""
|
4774 |
|
4894 |
|
4895 |
#: classes/views/frm-forms/add_field.php:29
|
4896 |
#: js/formidable_admin.js:1199
|
4897 |
+
#: js/formidable_admin.js:1958
|
4898 |
msgid "More Options"
|
4899 |
msgstr ""
|
4900 |
|
5442 |
msgid "Don't use form styling on any page"
|
5443 |
msgstr ""
|
5444 |
|
5445 |
+
#: classes/views/frm-settings/general.php:37
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5446 |
msgid "Other"
|
5447 |
msgstr ""
|
5448 |
|
5449 |
+
#: classes/views/frm-settings/general.php:50
|
5450 |
msgid "Do not store IPs with form submissions. Check this box for to assist with GDPR compliance."
|
5451 |
msgstr ""
|
5452 |
|
5453 |
+
#: classes/views/frm-settings/general.php:57
|
5454 |
msgid "Do not include Formidable in the admin bar."
|
5455 |
msgstr ""
|
5456 |
|
6263 |
msgid "Error"
|
6264 |
msgstr ""
|
6265 |
|
6266 |
+
#: js/formidable_admin.js:1982
|
6267 |
msgid "Field settings"
|
6268 |
msgstr ""
|
6269 |
|
6270 |
+
#: js/formidable_admin.js:2009
|
6271 |
msgid "Delete Group"
|
6272 |
msgstr ""
|
6273 |
|
6274 |
+
#: js/formidable_admin.js:2015
|
6275 |
msgid "Duplicate Group"
|
6276 |
msgstr ""
|
6277 |
|
6278 |
+
#: js/formidable_admin.js:3327
|
6279 |
msgid "Custom layout"
|
6280 |
msgstr ""
|
6281 |
|
6282 |
+
#: js/formidable_admin.js:3341
|
6283 |
msgid "Break into rows"
|
6284 |
msgstr ""
|
6285 |
|
6286 |
+
#: js/formidable_admin.js:3350
|
6287 |
msgid "Row Layout"
|
6288 |
msgstr ""
|
6289 |
|
6290 |
+
#: js/formidable_admin.js:3604
|
6291 |
msgid "Enter number of columns for each field"
|
6292 |
msgstr ""
|
6293 |
|
6294 |
+
#: js/formidable_admin.js:3608
|
6295 |
msgid "Layouts are based on a 12-column grid system"
|
6296 |
msgstr ""
|
6297 |
|
6298 |
+
#: js/formidable_admin.js:3624
|
6299 |
msgid "Save"
|
6300 |
msgstr ""
|
6301 |
|
6302 |
+
#: js/formidable_admin.js:3915
|
6303 |
msgid "Merge into row"
|
6304 |
msgstr ""
|
6305 |
|
6306 |
#. translators: %1$s: Number of fields that are selected to be deleted.
|
6307 |
+
#: js/formidable_admin.js:4003
|
6308 |
msgid "Are you sure you want to delete these %1$s selected fields?"
|
6309 |
msgstr ""
|
6310 |
|
6311 |
+
#: js/formidable_admin.js:7559
|
6312 |
msgid "Save and Reload"
|
6313 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: forms, contact form, form builder, survey, form maker, form creator, paypa
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.8.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 5.0.
|
9 |
|
10 |
The most advanced WordPress forms plugin. Go beyond contact forms with our drag & drop form builder for surveys, quizzes, and more.
|
11 |
|
@@ -440,6 +440,12 @@ Using our Zapier integration, you can easily connect Formidable with over 1000+
|
|
440 |
See all <a href="https://zapier.com/apps/formidable/integrations">Formidable Zapier Integrations</a>.
|
441 |
|
442 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
= 5.0.04 =
|
444 |
* New: Custom HTML for errors is now also applied when validating with JavaScript.
|
445 |
* New: Added a button to quickly save and reload after activating a new plugin from the settings page.
|
@@ -477,10 +483,4 @@ See all <a href="https://zapier.com/apps/formidable/integrations">Formidable Zap
|
|
477 |
* New: Improved support for importing grid and table view content.
|
478 |
* Fix: The update and preview buttons in the form builder would wrap to two lines for some longer translations including German and Dutch.
|
479 |
|
480 |
-
= 4.11.04 =
|
481 |
-
* New: The first field with an error will now automatically get focus when a form is submitted for better accessibility and improved user experience.
|
482 |
-
* Fix: The reply to value of an email would default to the admin email instead of the from email when a shortcode with an empty result was used.
|
483 |
-
* Fix: When switching between the dropdown and text lookup types, the watch lookup option not properly toggle back on.
|
484 |
-
* Fix: The autocomplete page dropdown was not consistent with other styles.
|
485 |
-
|
486 |
<a href="https://raw.githubusercontent.com/Strategy11/formidable-forms/master/changelog.txt">See changelog for all versions</a>
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.8.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 5.0.05
|
9 |
|
10 |
The most advanced WordPress forms plugin. Go beyond contact forms with our drag & drop form builder for surveys, quizzes, and more.
|
11 |
|
440 |
See all <a href="https://zapier.com/apps/formidable/integrations">Formidable Zapier Integrations</a>.
|
441 |
|
442 |
== Changelog ==
|
443 |
+
= 5.0.05 =
|
444 |
+
* Deprecated the option to disable CSS Grids in form layouts.
|
445 |
+
* Fix: JavaScript validation was failing to validate for many fields with custom patterns because extra conflicting HTML was sometimes being added to the check.
|
446 |
+
* Fix: Field dropdowns are now more accessible and it should be easier to delete and duplicate fields with a screen reader.
|
447 |
+
* Fix: Updated form padding on admin page so forms with custom padding don't appear small in the back end.
|
448 |
+
|
449 |
= 5.0.04 =
|
450 |
* New: Custom HTML for errors is now also applied when validating with JavaScript.
|
451 |
* New: Added a button to quickly save and reload after activating a new plugin from the settings page.
|
483 |
* New: Improved support for importing grid and table view content.
|
484 |
* Fix: The update and preview buttons in the form builder would wrap to two lines for some longer translations including German and Dutch.
|
485 |
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
<a href="https://raw.githubusercontent.com/Strategy11/formidable-forms/master/changelog.txt">See changelog for all versions</a>
|