Formidable Forms – Form Builder for WordPress - Version 2.0.14

Version Description

  • Stripslashes in Other field
  • Prevent collapse icon from being inserted inside of section
  • Make sure roles dropdowns show correctly after clicking update (in Global Settings)
  • Make form listing and entry listing pages responsive
  • Don't truncate form name in excerpt mode
  • Fix validating embedded forms
  • Fix filtering by repeating fields in Dynamic Views > Detail Page
  • Fix dependent Dynamic autocomplete fields with default values
  • Fix logic on embedded forms and multiselect dd
  • Some readonly field fixes
  • Read-only improvements for multiselect dropdown
  • Improve JavaScript for multiple forms on a page
  • Use the minified css for jQuery UI styling
  • Allow view filtering with time fields using NOW
  • Allow times to be formatted with [25 format='g:i A']
Download this release

Release Info

Developer jamie.wahlin
Plugin Icon 128x128 Formidable Forms – Form Builder for WordPress
Version 2.0.14
Comparing to
See all releases

Code changes from version 2.0.13 to 2.0.14

classes/helpers/FrmAppHelper.php CHANGED
@@ -10,7 +10,7 @@ class FrmAppHelper {
10
  /**
11
  * @since 2.0
12
  */
13
- public static $plug_version = '2.0.13';
14
 
15
  /**
16
  * @since 1.07.02
@@ -542,8 +542,6 @@ class FrmAppHelper {
542
  }
543
 
544
  public static function wp_roles_dropdown( $field_name, $capability, $multiple = 'single' ) {
545
- $capability = (array) self::get_param($field_name, $capability, 'post');
546
-
547
  ?>
548
  <select name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($field_name); ?>" <?php
549
  echo ( 'multiple' == $multiple ) ? 'multiple="multiple"' : '';
@@ -936,7 +934,7 @@ class FrmAppHelper {
936
  * @param string $table
937
  * @return bool|array
938
  */
939
- public static function setup_edit_vars( $record, $table, $fields = '', $default = false, $post_values = array() ) {
940
  if ( ! $record ) {
941
  return false;
942
  }
@@ -964,7 +962,8 @@ class FrmAppHelper {
964
  if ( ! $is_form_builder ) {
965
  $field->default_value = apply_filters('frm_get_default_value', $field->default_value, $field, true );
966
  }
967
- self::fill_field_defaults($field, $record, $values, compact('default', 'post_values', 'frm_settings'));
 
968
  }
969
 
970
  self::fill_form_opts($record, $table, $post_values, $values);
@@ -1009,6 +1008,7 @@ class FrmAppHelper {
1009
  'field_key' => $field->field_key,
1010
  'field_order' => $field->field_order,
1011
  'form_id' => $field->form_id,
 
1012
  );
1013
 
1014
  $args['field_type'] = $field_type;
10
  /**
11
  * @since 2.0
12
  */
13
+ public static $plug_version = '2.0.14';
14
 
15
  /**
16
  * @since 1.07.02
542
  }
543
 
544
  public static function wp_roles_dropdown( $field_name, $capability, $multiple = 'single' ) {
 
 
545
  ?>
546
  <select name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($field_name); ?>" <?php
547
  echo ( 'multiple' == $multiple ) ? 'multiple="multiple"' : '';
934
  * @param string $table
935
  * @return bool|array
936
  */
937
+ public static function setup_edit_vars( $record, $table, $fields = '', $default = false, $post_values = array(), $args = array() ) {
938
  if ( ! $record ) {
939
  return false;
940
  }
962
  if ( ! $is_form_builder ) {
963
  $field->default_value = apply_filters('frm_get_default_value', $field->default_value, $field, true );
964
  }
965
+ $parent_form_id = isset( $args['parent_form_id'] ) ? $args['parent_form_id'] : $field->form_id;
966
+ self::fill_field_defaults($field, $record, $values, compact('default', 'post_values', 'frm_settings', 'parent_form_id' ) );
967
  }
968
 
969
  self::fill_form_opts($record, $table, $post_values, $values);
1008
  'field_key' => $field->field_key,
1009
  'field_order' => $field->field_order,
1010
  'form_id' => $field->form_id,
1011
+ 'parent_form_id' => $args['parent_form_id'],
1012
  );
1013
 
1014
  $args['field_type'] = $field_type;
classes/helpers/FrmEntriesHelper.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined('ABSPATH') ) {
5
 
6
  class FrmEntriesHelper {
7
 
8
- public static function setup_new_vars( $fields, $form = '', $reset = false ) {
9
  global $frm_vars;
10
  $values = array();
11
  foreach ( array( 'name' => '', 'description' => '', 'item_key' => '' ) as $var => $default ) {
@@ -32,6 +32,7 @@ class FrmEntriesHelper {
32
  'field_key' => $field->field_key,
33
  'field_order' => $field->field_order,
34
  'form_id' => $field->form_id,
 
35
  );
36
 
37
  $opt_defaults = FrmFieldsHelper::get_default_field_opts($field_array['type'], $field, true);
@@ -346,7 +347,7 @@ class FrmEntriesHelper {
346
  // Save original value
347
  $args['temp_value'] = $value;
348
  $args['other'] = true;
349
- $other_vals = $_POST['item_meta']['other'][ $field->id ];
350
 
351
  // Set the validation value now
352
  self::set_other_validation_val( $value, $other_vals, $field, $args );
5
 
6
  class FrmEntriesHelper {
7
 
8
+ public static function setup_new_vars( $fields, $form = '', $reset = false, $args = array() ) {
9
  global $frm_vars;
10
  $values = array();
11
  foreach ( array( 'name' => '', 'description' => '', 'item_key' => '' ) as $var => $default ) {
32
  'field_key' => $field->field_key,
33
  'field_order' => $field->field_order,
34
  'form_id' => $field->form_id,
35
+ 'parent_form_id' => isset( $args['parent_form_id'] ) ? $args['parent_form_id'] : $field->form_id,
36
  );
37
 
38
  $opt_defaults = FrmFieldsHelper::get_default_field_opts($field_array['type'], $field, true);
347
  // Save original value
348
  $args['temp_value'] = $value;
349
  $args['other'] = true;
350
+ $other_vals = stripslashes_deep( $_POST['item_meta']['other'][ $field->id ] );
351
 
352
  // Set the validation value now
353
  self::set_other_validation_val( $value, $other_vals, $field, $args );
classes/helpers/FrmEntriesListHelper.php CHANGED
@@ -73,6 +73,29 @@ class FrmEntriesListHelper extends FrmListHelper {
73
  // Searching is a pro feature
74
  }
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  public function single_row( $item, $style = '' ) {
77
  // Set up the hover actions for this user
78
  $actions = array();
@@ -87,12 +110,16 @@ class FrmEntriesListHelper extends FrmListHelper {
87
 
88
  $r = "<tr id='item-action-{$item->id}'$style>";
89
 
90
- list( $columns, $hidden ) = $this->get_column_info();
91
  $action_col = false;
92
 
93
  foreach ( $columns as $column_name => $column_display_name ) {
94
  $class = $column_name .' column-'. $column_name;
95
 
 
 
 
 
96
  if ( in_array( $column_name, $hidden ) ) {
97
  $class .= ' frm_hidden';
98
  } else if ( ! $action_col && ! in_array( $column_name, array( 'cb', 'id', 'form_id', 'post_id' ) ) ) {
@@ -100,7 +127,8 @@ class FrmEntriesListHelper extends FrmListHelper {
100
  }
101
 
102
  $attributes = 'class="' . esc_attr( $class ) . '"';
103
- unset($class);
 
104
 
105
  $col_name = preg_replace('/^('. $this->params['form'] .'_)/', '', $column_name);
106
  $this->column_name = $col_name;
@@ -191,6 +219,9 @@ class FrmEntriesListHelper extends FrmListHelper {
191
  }
192
 
193
  $field = FrmField::getOne( $col_name );
 
 
 
194
 
195
  $atts = array(
196
  'type' => $field->type, 'truncate' => true,
73
  // Searching is a pro feature
74
  }
75
 
76
+ /**
77
+ * Gets the name of the primary column in the Entries screen
78
+ *
79
+ * @since 2.0.14
80
+ *
81
+ * @return string $primary_column
82
+ */
83
+ protected function get_primary_column_name() {
84
+ $columns = get_column_headers( $this->screen );
85
+ $hidden = get_hidden_columns( $this->screen );
86
+
87
+ $primary_column = '';
88
+
89
+ foreach ( $columns as $column_key => $column_display_name ) {
90
+ if ( 'cb' != $column_key && ! in_array( $column_key, $hidden ) ) {
91
+ $primary_column = $column_key;
92
+ break;
93
+ }
94
+ }
95
+
96
+ return $primary_column;
97
+ }
98
+
99
  public function single_row( $item, $style = '' ) {
100
  // Set up the hover actions for this user
101
  $actions = array();
110
 
111
  $r = "<tr id='item-action-{$item->id}'$style>";
112
 
113
+ list( $columns, $hidden, , $primary ) = $this->get_column_info();
114
  $action_col = false;
115
 
116
  foreach ( $columns as $column_name => $column_display_name ) {
117
  $class = $column_name .' column-'. $column_name;
118
 
119
+ if ( $column_name === $primary ) {
120
+ $class .= ' column-primary';
121
+ }
122
+
123
  if ( in_array( $column_name, $hidden ) ) {
124
  $class .= ' frm_hidden';
125
  } else if ( ! $action_col && ! in_array( $column_name, array( 'cb', 'id', 'form_id', 'post_id' ) ) ) {
127
  }
128
 
129
  $attributes = 'class="' . esc_attr( $class ) . '"';
130
+ unset($class);
131
+ $attributes .= ' data-colname="' . $column_display_name . '"';
132
 
133
  $col_name = preg_replace('/^('. $this->params['form'] .'_)/', '', $column_name);
134
  $this->column_name = $col_name;
219
  }
220
 
221
  $field = FrmField::getOne( $col_name );
222
+ if ( ! $field ) {
223
+ return;
224
+ }
225
 
226
  $atts = array(
227
  'type' => $field->type, 'truncate' => true,
classes/helpers/FrmFormsListHelper.php CHANGED
@@ -232,7 +232,8 @@ class FrmFormsListHelper extends FrmListHelper {
232
  }
233
 
234
  $class = 'class="' . esc_attr( $class ) . '"';
235
- $attributes = $class . $style;
 
236
 
237
  switch ( $column_name ) {
238
  case 'cb':
@@ -243,7 +244,7 @@ class FrmFormsListHelper extends FrmListHelper {
243
  $val = $item->{$column_name};
244
  break;
245
  case 'name':
246
- $val = $this->get_form_name( $item, $actions, $edit_link );
247
  $val .= $action_links;
248
 
249
  break;
@@ -327,12 +328,15 @@ class FrmFormsListHelper extends FrmListHelper {
327
  /**
328
  * @param string $edit_link
329
  */
330
- private function get_form_name( $item, $actions, $edit_link ) {
331
  $form_name = $item->name;
332
  if ( trim($form_name) == '' ) {
333
  $form_name = __( '(no title)');
334
  }
335
- $form_name = FrmAppHelper::truncate(strip_tags($form_name), 50);
 
 
 
336
 
337
  $val = '<strong>';
338
  if ( 'trash' == $this->status ) {
232
  }
233
 
234
  $class = 'class="' . esc_attr( $class ) . '"';
235
+ $data_colname = ' data-colname="' . esc_attr( $column_display_name ) . '"';
236
+ $attributes = $class . $style . $data_colname;
237
 
238
  switch ( $column_name ) {
239
  case 'cb':
244
  $val = $item->{$column_name};
245
  break;
246
  case 'name':
247
+ $val = $this->get_form_name( $item, $actions, $edit_link, $mode );
248
  $val .= $action_links;
249
 
250
  break;
328
  /**
329
  * @param string $edit_link
330
  */
331
+ private function get_form_name( $item, $actions, $edit_link, $mode = 'list' ) {
332
  $form_name = $item->name;
333
  if ( trim($form_name) == '' ) {
334
  $form_name = __( '(no title)');
335
  }
336
+ $form_name = FrmAppHelper::kses( $form_name );
337
+ if ( 'excerpt' != $mode ) {
338
+ $form_name = FrmAppHelper::truncate( $form_name, 50 );
339
+ }
340
 
341
  $val = '<strong>';
342
  if ( 'trash' == $this->status ) {
classes/helpers/FrmStylesHelper.php CHANGED
@@ -48,7 +48,7 @@ class FrmStylesHelper {
48
  if ( file_exists($uploads['basedir'] . $file_path) ) {
49
  $css_file = $uploads['baseurl'] . $file_path;
50
  } else {
51
- $css_file = FrmAppHelper::jquery_ui_base_url() .'/themes/'. $theme_css . '/jquery-ui.css';
52
  }
53
  }
54
 
48
  if ( file_exists($uploads['basedir'] . $file_path) ) {
49
  $css_file = $uploads['baseurl'] . $file_path;
50
  } else {
51
+ $css_file = FrmAppHelper::jquery_ui_base_url() .'/themes/'. $theme_css . '/jquery-ui.min.css';
52
  }
53
  }
54
 
classes/helpers/FrmXMLHelper.php CHANGED
@@ -53,7 +53,7 @@ class FrmXMLHelper {
53
  }
54
 
55
  if ( ! function_exists('simplexml_import_dom') ) {
56
- return new WP_Error( 'SimpleXML_parse_error', __( 'Your server in missing the simplexml_import_dom function', 'formidable' ), libxml_get_errors() );
57
  }
58
 
59
  $xml = simplexml_import_dom( $dom );
53
  }
54
 
55
  if ( ! function_exists('simplexml_import_dom') ) {
56
+ return new WP_Error( 'SimpleXML_parse_error', __( 'Your server is missing the simplexml_import_dom function', 'formidable' ), libxml_get_errors() );
57
  }
58
 
59
  $xml = simplexml_import_dom( $dom );
classes/models/EDD_SL_Plugin_Updater.php CHANGED
@@ -179,18 +179,21 @@ class EDD_SL_Plugin_Updater {
179
 
180
  if ( empty( $version_info->download_link ) ) {
181
  printf(
182
- __( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a>.', 'edd' ),
183
  esc_html( $version_info->name ),
184
- esc_url( $changelog_link ),
185
- esc_html( $version_info->new_version )
 
186
  );
187
  } else {
188
  printf(
189
- __( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a> or <a href="%4$s">update now</a>.', 'edd' ),
190
  esc_html( $version_info->name ),
191
- esc_url( $changelog_link ),
192
  esc_html( $version_info->new_version ),
193
- esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $this->name, 'upgrade-plugin_' . $this->name ) )
 
 
194
  );
195
  }
196
 
179
 
180
  if ( empty( $version_info->download_link ) ) {
181
  printf(
182
+ __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s.', 'edd' ),
183
  esc_html( $version_info->name ),
184
+ '<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
185
+ esc_html( $version_info->new_version ),
186
+ '</a>'
187
  );
188
  } else {
189
  printf(
190
+ __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.', 'edd' ),
191
  esc_html( $version_info->name ),
192
+ '<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
193
  esc_html( $version_info->new_version ),
194
+ '</a>',
195
+ '<a href="' . esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $this->name, 'upgrade-plugin_' . $this->name ) ) .'">',
196
+ '</a>'
197
  );
198
  }
199
 
classes/views/frm-entries/form.php CHANGED
@@ -12,10 +12,10 @@ global $frm_vars;
12
  FrmFormsController::maybe_load_css( $form, $values['custom_style'], $frm_vars['load_css'] );
13
 
14
  // Get conditionally hidden fields
15
- $frm_hide_fields = FrmAppHelper::get_post_param( 'frm_hide_fields', '', 'sanitize_text_field' );
16
 
17
  // Get helpers
18
- $frm_helpers = apply_filters( 'frm_get_parent_child_field_helpers', '', $values['fields'] );
19
 
20
  ?>
21
  <div class="frm_form_fields <?php echo esc_attr( apply_filters( 'frm_form_fields_class', '', $values ) ); ?>">
@@ -23,8 +23,8 @@ $frm_helpers = apply_filters( 'frm_get_parent_child_field_helpers', '', $values[
23
  <?php echo FrmFormsHelper::replace_shortcodes( $values['before_html'], $form, $title, $description ); ?>
24
  <input type="hidden" name="frm_action" value="<?php echo esc_attr($form_action) ?>" />
25
  <input type="hidden" name="form_id" value="<?php echo esc_attr($form->id) ?>" />
26
- <input type="hidden" name="frm_hide_fields" id="frm_hide_fields" value="<?php echo esc_attr($frm_hide_fields) ?>" />
27
- <input type="hidden" name="frm_helpers" id="frm_helpers" value="<?php echo esc_attr( $frm_helpers ) ?>" />
28
  <input type="hidden" name="form_key" value="<?php echo esc_attr($form->form_key) ?>" />
29
  <input type="hidden" name="item_meta[0]" value="" />
30
  <?php wp_nonce_field( 'frm_submit_entry_nonce', 'frm_submit_entry_' . $form->id ); ?>
12
  FrmFormsController::maybe_load_css( $form, $values['custom_style'], $frm_vars['load_css'] );
13
 
14
  // Get conditionally hidden fields
15
+ $frm_hide_fields = FrmAppHelper::get_post_param( 'frm_hide_fields_' . $form->id, '', 'sanitize_text_field' );
16
 
17
  // Get helpers
18
+ $frm_helpers = apply_filters( 'frm_get_parent_child_field_helpers', '', $values['fields'], array( 'form_id' => $form->id ) );
19
 
20
  ?>
21
  <div class="frm_form_fields <?php echo esc_attr( apply_filters( 'frm_form_fields_class', '', $values ) ); ?>">
23
  <?php echo FrmFormsHelper::replace_shortcodes( $values['before_html'], $form, $title, $description ); ?>
24
  <input type="hidden" name="frm_action" value="<?php echo esc_attr($form_action) ?>" />
25
  <input type="hidden" name="form_id" value="<?php echo esc_attr($form->id) ?>" />
26
+ <input type="hidden" name="frm_hide_fields_<?php echo esc_attr( $form->id ) ?>" id="frm_hide_fields_<?php echo esc_attr( $form->id ) ?>" value="<?php echo esc_attr($frm_hide_fields) ?>" />
27
+ <input type="hidden" name="frm_helpers_<?php echo esc_attr( $form->id ) ?>" id="frm_helpers_<?php echo esc_attr( $form->id ) ?>" value="<?php echo esc_attr( $frm_helpers ) ?>" />
28
  <input type="hidden" name="form_key" value="<?php echo esc_attr($form->form_key) ?>" />
29
  <input type="hidden" name="item_meta[0]" value="" />
30
  <?php wp_nonce_field( 'frm_submit_entry_nonce', 'frm_submit_entry_' . $form->id ); ?>
classes/views/frm-fields/input.php CHANGED
@@ -64,10 +64,18 @@ do_action('frm_field_input_html', $field);
64
  echo FrmFieldsHelper::dropdown_categories( array( 'name' => $field_name, 'field' => $field ) );
65
  } else {
66
  if ( FrmField::is_read_only( $field ) && ! FrmAppHelper::is_admin() ) {
67
- $read_only = true; ?>
68
- <input type="hidden" value="<?php echo esc_attr($field['value']) ?>" name="<?php echo esc_attr( $field_name ) ?>" id="<?php echo esc_attr( $html_id ) ?>" />
69
- <select disabled="disabled" <?php do_action('frm_field_input_html', $field) ?>>
70
- <?php } else { ?>
 
 
 
 
 
 
 
 
71
  <select name="<?php echo esc_attr( $field_name ) ?>" id="<?php echo esc_attr( $html_id ) ?>" <?php do_action('frm_field_input_html', $field) ?>>
72
  <?php }
73
 
@@ -107,7 +115,7 @@ do_action('frm_field_input_html', $field);
107
  <?php
108
  }
109
  } else { ?>
110
- <input type="hidden" value="<?php echo esc_attr( $checked_values ) ?>" id="<?php echo esc_attr( $html_id ) ?>-<?php echo esc_attr( sanitize_title( $checked_value ) ) ?>" name="<?php echo esc_attr( $field_name ) ?>[]" />
111
  <?php
112
  }
113
  }
64
  echo FrmFieldsHelper::dropdown_categories( array( 'name' => $field_name, 'field' => $field ) );
65
  } else {
66
  if ( FrmField::is_read_only( $field ) && ! FrmAppHelper::is_admin() ) {
67
+ $read_only = true;
68
+
69
+ if ( is_array( $field['value'] ) ) {
70
+ foreach ( $field['value'] as $selected_value ) { ?>
71
+ <input type="hidden" value="<?php echo esc_attr( $selected_value ) ?>" name="<?php echo esc_attr( $field_name ) ?>[]" /> <?php
72
+ }
73
+ } else { ?>
74
+ <input type="hidden" value="<?php echo esc_attr($field['value']) ?>" name="<?php echo esc_attr( $field_name ) ?>" id="<?php echo esc_attr( $html_id ) ?>" /> <?php
75
+ } ?>
76
+ <select disabled="disabled" <?php do_action('frm_field_input_html', $field) ?>> <?php
77
+
78
+ } else { ?>
79
  <select name="<?php echo esc_attr( $field_name ) ?>" id="<?php echo esc_attr( $html_id ) ?>" <?php do_action('frm_field_input_html', $field) ?>>
80
  <?php }
81
 
115
  <?php
116
  }
117
  } else { ?>
118
+ <input type="hidden" value="" name="<?php echo esc_attr( $field_name ) ?>[]" />
119
  <?php
120
  }
121
  }
css/frm_admin.css CHANGED
@@ -2142,6 +2142,37 @@ Responsive Design
2142
  display:table-cell;
2143
  width:auto !important;
2144
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2145
  }
2146
  @media (min-width:768px){
2147
  .navbar-right .frm-dropdown-menu{right:0;left:auto;}
2142
  display:table-cell;
2143
  width:auto !important;
2144
  }
2145
+
2146
+ .wp-list-table.toplevel_page_formidable .column-entries,
2147
+ .wp-list-table.toplevel_page_formidable .column-form_key,
2148
+ .wp-list-table.toplevel_page_formidable .column-shortcode,
2149
+ .wp-list-table.toplevel_page_formidable .column-created_at{
2150
+ display:none !important;
2151
+ }
2152
+
2153
+ .wp-list-table.toplevel_page_formidable td.column-entries,
2154
+ .wp-list-table.toplevel_page_formidable td.column-form_key,
2155
+ .wp-list-table.toplevel_page_formidable td.column-shortcode,
2156
+ .wp-list-table.toplevel_page_formidable td.column-created_at{
2157
+ padding: 3px 8px 3px 35%;
2158
+ text-align:left;
2159
+ }
2160
+
2161
+ .wp-list-table.toplevel_page_formidable td.column-title:before,
2162
+ .wp-list-table.toplevel_page_formidable td.column-id:before{
2163
+ display:none !important;
2164
+ }
2165
+
2166
+ .wp-list-table.toplevel_page_formidable td.column-title,
2167
+ .wp-list-table.toplevel_page_formidable td.column-id{
2168
+ display:table-cell !important;
2169
+ }
2170
+
2171
+ .wp-list-table.formidable_page_formidable-entries th.frm_hidden,
2172
+ .wp-list-table.formidable_page_formidable-entries td.frm_hidden{
2173
+ display:none !important;
2174
+ }
2175
+
2176
  }
2177
  @media (min-width:768px){
2178
  .navbar-right .frm-dropdown-menu{right:0;left:auto;}
formidable.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Formidable
4
  Description: Quickly and easily create drag-and-drop forms
5
- Version: 2.0.13
6
  Plugin URI: http://formidablepro.com/
7
  Author URI: http://strategy11.com
8
  Author: Strategy11
2
  /*
3
  Plugin Name: Formidable
4
  Description: Quickly and easily create drag-and-drop forms
5
+ Version: 2.0.14
6
  Plugin URI: http://formidablepro.com/
7
  Author URI: http://strategy11.com
8
  Author: Strategy11
js/formidable.js CHANGED
@@ -267,6 +267,7 @@ function frmFrontFormJS(){
267
  c.HideField = rule.Setting.FieldName;
268
  c.MatchType = rule.MatchType;
269
  c.Show = rule.Show;
 
270
  this_opts.push(c);
271
  }
272
  }
@@ -488,7 +489,7 @@ function frmFrontFormJS(){
488
  hide_later.push({
489
  'result':show_fields[f.hideContainerID][i], 'show':f.Show,
490
  'match':f.MatchType, 'FieldName':f.FieldName, 'HideField':f.HideField,
491
- 'hideContainerID':f.hideContainerID
492
  });
493
  return;
494
  }
@@ -554,7 +555,7 @@ function frmFrontFormJS(){
554
  var inputs = jQuery( 'input[name^="' + fieldName + '"]' );
555
  clearValueForInputs( inputs );
556
  }
557
- addToHideFields( f.hideContainerID );
558
  }
559
 
560
  function hideFieldAndClearValue( container, f ) {
@@ -565,7 +566,7 @@ function frmFrontFormJS(){
565
 
566
  var inputs = getInputsInContainer( container );
567
  if ( inputs.length ){
568
- clearValueForInputs( inputs )
569
  }
570
  }
571
  }
@@ -589,9 +590,9 @@ function frmFrontFormJS(){
589
  });
590
  }
591
 
592
- function addToHideFields( htmlFieldId ) {
593
  // Get all currently hidden fields
594
- var frmHideFieldsInput = document.getElementById('frm_hide_fields');
595
  var hiddenFields = frmHideFieldsInput.value;
596
  if ( hiddenFields ) {
597
  hiddenFields = JSON.parse( hiddenFields );
@@ -630,15 +631,15 @@ function frmFrontFormJS(){
630
  // Set field value (don't show it)
631
  var fieldName = getFieldName( f.HideField, f.hideContainerID );
632
  var inputs = jQuery( 'input[name^="' + fieldName + '"]' );
633
- setValForInputs( inputs )
634
  }
635
- removeFromHideFields( f.hideContainerID );
636
  }
637
 
638
  function showFieldAndSetValue( container, f ) {
639
  var inputs = getInputsInContainer( container );
640
 
641
- setValForInputs( inputs )
642
 
643
  container.show();
644
  }
@@ -681,9 +682,9 @@ function frmFrontFormJS(){
681
  }
682
  }
683
 
684
- function removeFromHideFields( htmlFieldId ) {
685
  // Get all currently hidden fields
686
- var frmHideFieldsInput = document.getElementById('frm_hide_fields');
687
  var hiddenFields = frmHideFieldsInput.value;
688
  if ( hiddenFields ) {
689
  hiddenFields = JSON.parse( hiddenFields );
@@ -957,7 +958,7 @@ function frmFrontFormJS(){
957
  for ( var i = 0, l = len; i < l; i++ ) {
958
 
959
  // Stop calculation if total field is conditionally hidden
960
- if ( fieldIsConditionallyHidden( all_calcs.calc[ keys[i] ].field_id, triggerField.attr('name') ) ) {
961
  continue;
962
  }
963
 
@@ -968,8 +969,10 @@ function frmFrontFormJS(){
968
  /**
969
  * Check if field (or its HTML parent) is hidden with conditional logic
970
  */
971
- function fieldIsConditionallyHidden( field_id, triggerFieldName ) {
972
- var hiddenFields = document.getElementById( 'frm_hide_fields').value;
 
 
973
  if ( hiddenFields ) {
974
  hiddenFields = JSON.parse( hiddenFields );
975
  } else {
@@ -990,7 +993,7 @@ function frmFrontFormJS(){
990
  }
991
 
992
  // If field is inside of section/embedded form which is hidden with conditional logic
993
- var helpers = getHelpers();
994
  if ( helpers && helpers[ field_id ] !== null && hiddenFields.indexOf( 'frm_field_' + helpers[ field_id ] + '_container' ) > -1 ) {
995
  return true;
996
  }
@@ -1909,6 +1912,11 @@ function frmFrontFormJS(){
1909
  // hide fields with conditional logic
1910
  jQuery(html).find('input, select, textarea').each(function(){
1911
  if ( this.type != 'file' ) {
 
 
 
 
 
1912
  fieldID = this.name.replace('item_meta[', '').split(']')[2].replace('[', '');
1913
  if ( jQuery.inArray(fieldID, checked ) == -1 ) {
1914
  fieldObject = jQuery( '#' + this.id );
@@ -1966,7 +1974,7 @@ function frmFrontFormJS(){
1966
  var prefix = $edit.data('prefix');
1967
  var post_id = $edit.data('pageid');
1968
  var form_id = $edit.data('formid');
1969
- var label = $edit.data('edit');
1970
  var fields = $edit.data('fields');
1971
  var exclude_fields = $edit.data('excludefields');
1972
 
@@ -1983,7 +1991,7 @@ function frmFrontFormJS(){
1983
  success:function(html){
1984
  $cont.children('.frm-loading-img').replaceWith(html);
1985
  $edit.removeClass('frm_inplace_edit').addClass('frm_cancel_edit');
1986
- $edit.html(label);
1987
  }
1988
  });
1989
  return false;
@@ -2098,8 +2106,8 @@ function frmFrontFormJS(){
2098
  return fieldName;
2099
  }
2100
 
2101
- function getHelpers() {
2102
- var helpers = document.getElementById( 'frm_helpers' ).value;
2103
  if ( helpers ) {
2104
  helpers = JSON.parse( helpers );
2105
  } else {
@@ -2143,7 +2151,7 @@ function frmFrontFormJS(){
2143
  function isRepeatingFieldById( fieldId ){
2144
  // Check field div first
2145
  var fieldDiv = document.getElementById( 'frm_field_' + fieldId + '_container' );
2146
- if ( typeof fieldDiv != 'undefined' && fieldDiv != null ) {
2147
  return false;
2148
  }
2149
 
@@ -2191,7 +2199,6 @@ function frmFrontFormJS(){
2191
  if ( !Array.prototype.filter ) {
2192
 
2193
  Array.prototype.filter = function(fun /*, thisp */) {
2194
- "use strict";
2195
 
2196
  if ( this === void 0 || this === null ) {
2197
  throw new TypeError();
@@ -2199,7 +2206,7 @@ function frmFrontFormJS(){
2199
 
2200
  var t = Object( this );
2201
  var len = t.length >>> 0;
2202
- if ( typeof fun !== "function" ) {
2203
  throw new TypeError();
2204
  }
2205
 
267
  c.HideField = rule.Setting.FieldName;
268
  c.MatchType = rule.MatchType;
269
  c.Show = rule.Show;
270
+ c.FormId = rule.FormId;
271
  this_opts.push(c);
272
  }
273
  }
489
  hide_later.push({
490
  'result':show_fields[f.hideContainerID][i], 'show':f.Show,
491
  'match':f.MatchType, 'FieldName':f.FieldName, 'HideField':f.HideField,
492
+ 'hideContainerID':f.hideContainerID, 'FormId':f.FormId
493
  });
494
  return;
495
  }
555
  var inputs = jQuery( 'input[name^="' + fieldName + '"]' );
556
  clearValueForInputs( inputs );
557
  }
558
+ addToHideFields( f.hideContainerID, f.FormId );
559
  }
560
 
561
  function hideFieldAndClearValue( container, f ) {
566
 
567
  var inputs = getInputsInContainer( container );
568
  if ( inputs.length ){
569
+ clearValueForInputs( inputs );
570
  }
571
  }
572
  }
590
  });
591
  }
592
 
593
+ function addToHideFields( htmlFieldId, formId ) {
594
  // Get all currently hidden fields
595
+ var frmHideFieldsInput = document.getElementById('frm_hide_fields_' + formId);
596
  var hiddenFields = frmHideFieldsInput.value;
597
  if ( hiddenFields ) {
598
  hiddenFields = JSON.parse( hiddenFields );
631
  // Set field value (don't show it)
632
  var fieldName = getFieldName( f.HideField, f.hideContainerID );
633
  var inputs = jQuery( 'input[name^="' + fieldName + '"]' );
634
+ setValForInputs( inputs );
635
  }
636
+ removeFromHideFields( f.hideContainerID, f.FormId );
637
  }
638
 
639
  function showFieldAndSetValue( container, f ) {
640
  var inputs = getInputsInContainer( container );
641
 
642
+ setValForInputs( inputs );
643
 
644
  container.show();
645
  }
682
  }
683
  }
684
 
685
+ function removeFromHideFields( htmlFieldId, formId ) {
686
  // Get all currently hidden fields
687
+ var frmHideFieldsInput = document.getElementById('frm_hide_fields_' + formId);
688
  var hiddenFields = frmHideFieldsInput.value;
689
  if ( hiddenFields ) {
690
  hiddenFields = JSON.parse( hiddenFields );
958
  for ( var i = 0, l = len; i < l; i++ ) {
959
 
960
  // Stop calculation if total field is conditionally hidden
961
+ if ( fieldIsConditionallyHidden( all_calcs.calc[ keys[i] ], triggerField.attr('name') ) ) {
962
  continue;
963
  }
964
 
969
  /**
970
  * Check if field (or its HTML parent) is hidden with conditional logic
971
  */
972
+ function fieldIsConditionallyHidden( calcDetails, triggerFieldName ) {
973
+ var field_id = calcDetails.field_id;
974
+ var form_id = calcDetails.form_id;
975
+ var hiddenFields = document.getElementById( 'frm_hide_fields_' + form_id).value;
976
  if ( hiddenFields ) {
977
  hiddenFields = JSON.parse( hiddenFields );
978
  } else {
993
  }
994
 
995
  // If field is inside of section/embedded form which is hidden with conditional logic
996
+ var helpers = getHelpers( form_id );
997
  if ( helpers && helpers[ field_id ] !== null && hiddenFields.indexOf( 'frm_field_' + helpers[ field_id ] + '_container' ) > -1 ) {
998
  return true;
999
  }
1912
  // hide fields with conditional logic
1913
  jQuery(html).find('input, select, textarea').each(function(){
1914
  if ( this.type != 'file' ) {
1915
+
1916
+ // Readonly dropdown fields won't have a name attribute
1917
+ if ( this.name == '' ) {
1918
+ return true;
1919
+ }
1920
  fieldID = this.name.replace('item_meta[', '').split(']')[2].replace('[', '');
1921
  if ( jQuery.inArray(fieldID, checked ) == -1 ) {
1922
  fieldObject = jQuery( '#' + this.id );
1974
  var prefix = $edit.data('prefix');
1975
  var post_id = $edit.data('pageid');
1976
  var form_id = $edit.data('formid');
1977
+ var cancel = $edit.data('cancel');
1978
  var fields = $edit.data('fields');
1979
  var exclude_fields = $edit.data('excludefields');
1980
 
1991
  success:function(html){
1992
  $cont.children('.frm-loading-img').replaceWith(html);
1993
  $edit.removeClass('frm_inplace_edit').addClass('frm_cancel_edit');
1994
+ $edit.html(cancel);
1995
  }
1996
  });
1997
  return false;
2106
  return fieldName;
2107
  }
2108
 
2109
+ function getHelpers( form_id ) {
2110
+ var helpers = document.getElementById( 'frm_helpers_' + form_id ).value;
2111
  if ( helpers ) {
2112
  helpers = JSON.parse( helpers );
2113
  } else {
2151
  function isRepeatingFieldById( fieldId ){
2152
  // Check field div first
2153
  var fieldDiv = document.getElementById( 'frm_field_' + fieldId + '_container' );
2154
+ if ( typeof fieldDiv !== 'undefined' && fieldDiv !== null ) {
2155
  return false;
2156
  }
2157
 
2199
  if ( !Array.prototype.filter ) {
2200
 
2201
  Array.prototype.filter = function(fun /*, thisp */) {
 
2202
 
2203
  if ( this === void 0 || this === null ) {
2204
  throw new TypeError();
2206
 
2207
  var t = Object( this );
2208
  var len = t.length >>> 0;
2209
+ if ( typeof fun !== 'function' ) {
2210
  throw new TypeError();
2211
  }
2212
 
js/formidable.min.js CHANGED
@@ -1,2 +1,2 @@
1
- function frmFrontFormJS(){"use strict";function setNextPage(e){var t=jQuery(this),i=t.attr("type");"submit"!==i&&e.preventDefault();var r=t.parents("form:first"),n="",a="",l=this.name;"frm_prev_page"===l||-1!==this.className.indexOf("frm_prev_page")?n=jQuery(r).find(".frm_next_page").attr("id").replace("frm_next_p_",""):("frm_save_draft"===l||-1!==this.className.indexOf("frm_save_draft"))&&(a=1),jQuery(".frm_next_page").val(n),jQuery(".frm_saving_draft").val(a),"submit"!==i&&r.trigger("submit")}function toggleSection(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast"),jQuery(this).toggleClass("active").children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-s ui-icon-triangle-1-e")}function showFileUploadText(){this.className=this.className.replace("frm_transparent","");var e=this.parentNode.getElementsByTagName("a")[0].className;-1==e.indexOf("frm_clear_file_link")&&(e+=" frm_hidden")}function showOtherText(){var e=this.type,t=!1,i=!1;if("select-one"===e){i=!0;var r=this.options[this.selectedIndex];"frm_other_trigger"===r.className&&(t=!0)}else if("select-multiple"===e){i=!0;var n=this.options;t=!1;for(var a=0;a<n.length;a++)if("frm_other_trigger"===n[a].className&&n[a].selected){t=!0;break}}if(i){var l=jQuery(this).parent().children(".frm_other_input");l.length&&(t?l[0].className=l[0].className.replace("frm_pos_none",""):(l[0].className.indexOf("frm_pos_none")<1&&(l[0].className=l[0].className+" frm_pos_none"),l[0].value=""))}else"radio"===e?jQuery(this).is(":checked")&&(jQuery(this).closest(".frm_radio").children(".frm_other_input").removeClass("frm_pos_none"),jQuery(this).closest(".frm_radio").siblings().children(".frm_other_input").addClass("frm_pos_none").val("")):"checkbox"===e&&(this.checked?jQuery(this).closest(".frm_checkbox").children(".frm_other_input").removeClass("frm_pos_none"):jQuery(this).closest(".frm_checkbox").children(".frm_other_input").addClass("frm_pos_none").val(""))}function maybeCheckDependent(e){var t=getFieldId(this);if(t&&"undefined"!=typeof t){var i="reset";if(e.frmTriggered){if(e.frmTriggered==t)return;i="persist"}checkDependentField(t,null,jQuery(this),i),doCalculation(t,jQuery(this))}}function getFieldId(e,t){var i="";i=e instanceof jQuery?e.attr("name"):e.name;var r=i.replace("item_meta[","").replace("[]","").split("]");if(r.length<1)return 0;r=r.filter(function(e){return""!==e});var n=r[0],a=!1;return 1===r.length||"[form"==r[1]?n:(jQuery('input[name="item_meta['+n+'][form]"]').length&&(n=r[2].replace("[",""),a=!0),"other"===n&&(n=a?r[3].replace("[",""):r[1].replace("[","")),t===!0&&(n=n+"-"+r[0]+"-"+r[1].replace("[","")),n)}function checkDependentField(e,t,i,r){var n=getRulesForField(e);if("undefined"!=typeof n){("undefined"==typeof t||null===t)&&(t="go"),"persist"!==r&&(show_fields=[],hidden_fields=[]);for(var a=maybeSetRowId(i),l=n.length,d=0,o=l;o>d;d++)n[d].FieldName===e?hideOrShowField(d,n[d],t,i):hideOrShowField(d,n[d],t),d===l-1&&(hideFieldLater(t),a&&(addingRow=""))}}function maybeSetRowId(e){var t=!1;if(""===addingRow&&"undefined"!=typeof e&&null!==e){e=maybeGetFirstElement(e);var i=e.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");"undefined"!=typeof i&&"undefined"!=typeof i.attr("id")&&(addingRow=i.attr("id"),t=!0)}return t}function getRulesForField(e){if("undefined"!=typeof __FRMRULES&&"undefined"!=typeof __FRMRULES[e]){var t=compileRules(__FRMRULES[e]);return t}}function compileRules(e){for(var t=[],i=0,r=e.length;r>i;i++){var n=e[i];if("undefined"!=typeof n)for(var a=0,l=n.Conditions.length;l>a;a++){var d=n.Conditions[a];d.HideField=n.Setting.FieldName,d.MatchType=n.MatchType,d.Show=n.Show,t.push(d)}}return t}function hideOrShowField(e,t,i,r){if(t.inputName="item_meta["+t.FieldName+"]",t.hiddenName="item_meta["+t.HideField+"]",t.containerID="frm_field_"+t.FieldName+"_container",t.hideContainerID="frm_field_"+t.HideField+"_container",""!==addingRow)return void checkRepeatingFieldInSingleRow(e,t,i,addingRow);if(("undefined"==typeof r||null===r)&&(r=jQuery('input[name^="'+t.inputName+'"], textarea[name^="'+t.inputName+'"], select[name^="'+t.inputName+'"]'),r.length<1))return void checkLogicForTwoRepeatingFields(e,t,i);var n=getBasicEnteredValue(t);return isRepeatingFieldById(t.HideField)?void checkLogicForRepeatingHideField(e,t,n,i):(setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,n),void hideFieldNow(e,t,i))}function checkRepeatingFieldInSingleRow(e,t,i,r){isRepeatingFieldById(t.FieldName)&&(t.inputName=getRepeatingFieldName(t.FieldName,r),t.containerID=getRepeatingFieldHtmlId(t.FieldName,r)),t.hideContainerID=getRepeatingFieldHtmlId(t.HideField,r);var n=getBasicEnteredValue(t);setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,n),hideFieldNow(e,t,i)}function checkLogicForTwoRepeatingFields(e,t,i){for(var r=document.getElementsByClassName("frm_field_"+t.FieldName+"_container"),n=0;n<r.length;n++){t.inputName=getRepeatingFieldName(t.FieldName,r[n].id),t.containerID=r[n].id,t.hideContainerID=r[n].id.replace(t.FieldName,t.HideField);var a=getBasicEnteredValue(t);setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,a),hideFieldNow(e,t,i)}}function checkLogicForRepeatingHideField(e,t,i,r){for(var n=document.getElementsByClassName("frm_field_"+t.HideField+"_container"),a=0;a<n.length;a++)t.hideContainerID=n[a].id,setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,i),hideFieldNow(e,t,r)}function getBasicEnteredValue(e){var t="";if("checkbox"===e.Type||"data-checkbox"===e.Type){var i=getCheckedVal(e.containerID,e.inputName);return t=i.length?i:""}return t=jQuery('input[name="'+e.inputName+'"][type="hidden"]').val(),"undefined"!=typeof t?t:(t="radio"==e.Type||"data-radio"===e.Type?jQuery('input[name="'+e.inputName+'"]:checked').val():"select"===e.Type||"data-select"===e.Type?jQuery('select[name^="'+e.inputName+'"]').val():jQuery('input[name="'+e.inputName+'"]').val(),"undefined"==typeof t&&(t=""),t)}function setEmptyKeyInShowFieldsArray(e){"undefined"==typeof show_fields[e.hideContainerID]&&(show_fields[e.hideContainerID]=[])}function updateShowFields(e,t,i){show_fields[t.hideContainerID][e]=null===i||""===i||i.length<1?!1:{funcName:"getDataOpts",f:t,sel:i},"checkbox"===t.Type||"data-checkbox"===t.Type&&"undefined"==typeof t.LinkedField?updateShowFieldsForCheckbox(e,t,i):"undefined"!=typeof t.LinkedField&&0===t.Type.indexOf("data-")?updateShowFieldsForDynamicField(e,t,i):"undefined"==typeof t.Value&&0===t.Type.indexOf("data")?(t.Value=""===i?"1":i,show_fields[t.hideContainerID][e]=operators(t.Condition,t.Value,i),t.Value=void 0):show_fields[t.hideContainerID][e]=operators(t.Condition,t.Value,i)}function updateShowFieldsForCheckbox(e,t,i){show_fields[t.hideContainerID][e]=!1;var r=!1;if(""!==i){"!="===t.Condition&&(show_fields[t.hideContainerID][e]=!0);for(var n=0;n<i.length;n++)r=operators(t.Condition,t.Value,i[n]),"!="===t.Condition?show_fields[t.hideContainerID][e]===!0&&r===!1&&(show_fields[t.hideContainerID][e]=!1):show_fields[t.hideContainerID][e]===!1&&r&&(show_fields[t.hideContainerID][e]=!0)}else r=operators(t.Condition,t.Value,""),show_fields[t.hideContainerID][e]===!1&&r&&(show_fields[t.hideContainerID][e]=!0)}function updateShowFieldsForDynamicField(e,t,i){("undefined"==typeof t.DataType||"data"===t.DataType)&&(""===i?hideAndClearDynamicField(t.hideContainerID,t.HideField,"hide"):"data-radio"===t.Type?show_fields[t.hideContainerID][e]="undefined"==typeof t.DataType?operators(t.Condition,t.Value,i):{funcName:"getData",f:t,sel:i}:"data-checkbox"===t.Type||"data-select"===t.Type&&isNotEmptyArray(i)?(hideAndClearDynamicField(t.hideContainerID,t.HideField,"show"),show_fields[t.hideContainerID][e]=!0,getData(t,i,0)):"data-select"===t.Type&&(show_fields[t.hideContainerID][e]={funcName:"getData",f:t,sel:i}))}function hideFieldNow(e,t,i){if("all"===t.MatchType||show_fields[t.hideContainerID][e]===!1)return void hide_later.push({result:show_fields[t.hideContainerID][e],show:t.Show,match:t.MatchType,FieldName:t.FieldName,HideField:t.HideField,hideContainerID:t.hideContainerID});var r="none";if("show"===t.Show){if(show_fields[t.hideContainerID][e]!==!0)return void showField(show_fields[t.hideContainerID][e],t.FieldName,i);r=""}var n=jQuery(document.getElementById(t.hideContainerID));"none"==r?routeToHideFieldAndClearVal(n,t):routeToShowFieldAndSetVal(n,t)}function hideFieldLater(e){jQuery.each(hide_later,function(t,i){if(delete hide_later[t],"undefined"!=typeof i&&"undefined"!=typeof i.result){var r=jQuery("#"+i.hideContainerID),n=i.show;("any"===i.match&&-1===jQuery.inArray(!0,show_fields[i.hideContainerID])||"all"===i.match&&jQuery.inArray(!1,show_fields[i.hideContainerID])>-1)&&(n="show"===i.show?"hide":"show"),"show"===n?(routeToShowFieldAndSetVal(r,i),typeof i.result!==!1&&typeof i.result!==!0&&showField(i.result,i.FieldName,e)):routeToHideFieldAndClearVal(r,i)}})}function routeToHideFieldAndClearVal(e,t){if(e.length)hideFieldAndClearValue(e,t);else{var i=getFieldName(t.HideField,t.hideContainerID),r=jQuery('input[name^="'+i+'"]');clearValueForInputs(r)}addToHideFields(t.hideContainerID)}function hideFieldAndClearValue(e,t){if(e.hide(),-1===jQuery.inArray(e.attr("id"),hidden_fields)){var i=t.HideField;hidden_fields[i]=e.attr("id");var r=getInputsInContainer(e);r.length&&clearValueForInputs(r)}}function clearValueForInputs(e){e.prop("checked",!1).prop("selectedIndex",0),e.not(":checkbox, :radio, select").val("");var t=!1;e.each(function(){if("SELECT"==this.tagName){var e=document.getElementById(this.id+"_chosen");null!==e&&jQuery(this).trigger("chosen:updated")}(t===!1||["checkbox","radio"].indexOf(this.type)<0)&&triggerChange(jQuery(this)),t=!0})}function addToHideFields(e){var t=document.getElementById("frm_hide_fields"),i=t.value;i=i?JSON.parse(i):[],i.indexOf(e)>-1||(i.push(e),i=JSON.stringify(i),t.value=i)}function hideAndClearDynamicField(e,t,i){-1===jQuery.inArray(e,hidden_fields)&&(hidden_fields[t]=e,e=jQuery(document.getElementById(e)),"hide"===i&&e.hide(),e.find(".frm_data_field_container").empty())}function routeToShowFieldAndSetVal(e,t){if(e.length)showFieldAndSetValue(e,t);else{var i=getFieldName(t.HideField,t.hideContainerID),r=jQuery('input[name^="'+i+'"]');setValForInputs(r)}removeFromHideFields(t.hideContainerID)}function showFieldAndSetValue(e){var t=getInputsInContainer(e);setValForInputs(t),e.show()}function setValForInputs(e){if(e.length)for(var t=0;t<e.length;t++)setDefaultValue(jQuery(e[t])),maybeDoCalcForSingleField(e[t])}function setDefaultValue(e){var t=e.length;if(e.is(":checkbox, :radio")){if(e.is(":checked"))return}else if(e.val())return;if(t)for(var i=0,r=t;r>i;i++){var n=jQuery(e[i]),a=n.data("frmval");"undefined"!=typeof a&&(n.is(":checkbox, :radio")?(n.val()==a||jQuery.isArray(a)&&-1!==jQuery.inArray(n.val(),a))&&(n.prop("checked",!0),triggerChange(n)):(n.val(a),triggerChange(n)))}}function removeFromHideFields(e){var t=document.getElementById("frm_hide_fields"),i=t.value;if(i){i=JSON.parse(i);var r=i.indexOf(e);r>-1&&(i.splice(r,1),i=JSON.stringify(i),t.value=i)}}function triggerChange(e,t){"undefined"==typeof t&&(t="dependent"),e.length>1&&(e=e.eq(0)),e.trigger({type:"change",selfTriggered:!0,frmTriggered:t})}function operators(e,t,i){if("undefined"==typeof i&&(i=""),jQuery.isArray(i)&&jQuery.inArray(t,i)>-1&&(i=t),-1!==String(t).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)&&(t=parseFloat(t),i=parseFloat(i)),"-1"!=String(t).indexOf("&quot;")&&operators(e,t.replace("&quot;",'"'),i))return!0;var r={"==":function(e,t){return e==t},"!=":function(e,t){return e!=t},"<":function(e,t){return e>t},">":function(e,t){return t>e},LIKE:function(e,t){return t?-1!=t.indexOf(e):0},"not LIKE":function(e,t){return t?-1==t.indexOf(e):1}};return r[e](t,i)}function showField(e,t,i){"getDataOpts"==e.funcName?getDataOpts(e.f,e.sel,t,i):"getData"==e.funcName&&getData(e.f,e.sel,0)}function getData(e,t,i){var r=document.getElementById(e.hideContainerID),n=jQuery(r).find(".frm_data_field_container");return 0===n.length?!0:(i||n.html('<span class="frm-loading-img"></span>'),void jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_get_data",entry_id:t,field_id:e.LinkedField,current_field:e.HideField,hide_id:e.hideContainerID,nonce:frm_js.nonce},success:function(e){i?n.append(e):n.html(e);var t=n.children("input"),a=t.val();return r.style.display=""===e&&!i||""===a?"none":"",triggerChange(t),!0}}))}function getDataOpts(e,t,i,r){if(!("stop"==r&&jQuery.inArray(e.HideField,frm_checked_dep)>-1&&e.parentField&&"hidden"==e.parentField.attr("type"))){var n=jQuery("#"+e.hideContainerID).find('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]'),a=getPrevFieldValue(n),l=n.data("frmval");if("select"!=e.DataType||"stop"!=r&&!jQuery("#"+e.hideContainerID+" .frm-loading-img").length||!(jQuery.inArray(e.HideField,frm_checked_dep)>-1)){frm_checked_dep.push(e.HideField);var d=document.getElementById(e.hideContainerID),o=jQuery(d).find(".frm_data_field_container");if(0===o.length&&n.length)return checkDependentField(e.HideField,"stop",n),!1;if(""!==e.Value){var f=operators(e.Condition,e.Value,t);if(!f)return d.style.display="none",o.html(""),checkDependentField(e.HideField,"stop",n),!1}o.html('<span class="frm-loading-img" style="visibility:visible;display:inline;"></span>');var s=(e.hiddenName,e.DataType);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",hide_field:i,entry_id:t,selected_field_id:e.LinkedField,field_id:e.HideField,default_value:l,hide_id:e.hideContainerID,nonce:frm_js.nonce},success:function(t){o.html(t);var i=o.find("select, input, textarea"),r=1;if("hidden"==i.attr("type")&&(r=i.val()),""===t||""===r?(d.style.display="none",a=""):"all"!=e.MatchType&&(d.style.display=""),""!==t)if(""!==a){if(!jQuery.isArray(a)){var n=[];n.push(a),a=n}jQuery.each(a,function(e,t){if("undefined"!=typeof t&&""!==t)if("checkbox"==s||"radio"==s)i.length>1?i.filter('[value="'+t+'"]').attr("checked","checked"):i.val()==t&&i.attr("checked","checked");else if("select"==s){var r=i.children('option[value="'+t+'"]');r.length?r.prop("selected",!0):a.splice(e,1)}else i.val(t)})}else setDefaultValue(getInputsInContainer(o));i.hasClass("frm_chzn")&&jQuery().chosen&&jQuery(".frm_chzn").chosen({allow_single_deselect:!0}),triggerChange(i)}})}}}function getPrevFieldValue(e){var t=[],i="";return e.each(function(){i=this.value,"radio"===this.type||"checkbox"===this.type?this.checked===!0&&t.push(i):""!==i&&t.push(i)}),0===t.length&&(t=""),t}function doCalculation(e,t){if("undefined"!=typeof __FRMCALC){var i=__FRMCALC,r=i.fields[e];if("undefined"!=typeof r)for(var n=r.total,a=n.length,l=[],d=0,o=a;o>d;d++)fieldIsConditionallyHidden(i.calc[n[d]].field_id,t.attr("name"))||doSingleCalculation(i,n[d],l,t)}}function fieldIsConditionallyHidden(e,t){var i=document.getElementById("frm_hide_fields").value;if(!i)return!1;i=JSON.parse(i);var r=e;if(isRepeatingFieldByName(t)){var n=t.replace("item_meta","").replace(/\[/g,"").split("]");r=e+"-"+n[0]+"-"+n[1]}if(i.indexOf("frm_field_"+r+"_container")>-1)return!0;var a=getHelpers();return a&&null!==a[e]&&i.indexOf("frm_field_"+a[e]+"_container")>-1?!0:!1}function isRepeatingFieldByName(e){var t=!1,i=e.split("[");return i.length>=4&&(t=!0),t}function doSingleCalculation(all_calcs,field_key,vals,triggerField){var thisCalc=all_calcs.calc[field_key],thisFullCalc=thisCalc.calc,totalField=jQuery(document.getElementById("field_"+field_key)),fieldInfo={triggerField:triggerField,inSection:!1,thisFieldCall:'input[id^="field_'+field_key+'-"]'};totalField.length<1&&"undefined"!=typeof triggerField&&(fieldInfo.inSection=!0,fieldInfo.thisFieldId=objectSearch(all_calcs.fieldsWithCalc,field_key),totalField=getSiblingField(fieldInfo)),thisFullCalc=getValsForSingleCalc(thisCalc,thisFullCalc,all_calcs,vals,fieldInfo);var dec=thisCalc.calc_dec;if(thisFullCalc.indexOf(").toFixed(")){var calcParts=thisFullCalc.split(").toFixed(");isNumeric(calcParts[1])&&(dec=calcParts[1],thisFullCalc=thisFullCalc.replace(").toFixed("+dec,""))}var total=parseFloat(eval(thisFullCalc));"undefined"==typeof total&&(total=0),isNumeric(dec)&&(total=total.toFixed(dec)),totalField.val()!=total&&(totalField.val(total),triggerChange(totalField,field_key))}function getValsForSingleCalc(e,t,i,r,n){for(var a=e.fields.length,l=0,d=a;d>l;l++){var o={triggerField:n.triggerField,thisFieldId:e.fields[l],inSection:n.inSection,valKey:n.inSection+""+e.fields[l],thisField:i.fields[e.fields[l]],thisFieldCall:"input"+i.fieldKeys[e.fields[l]]};o=getCallForField(o,i),r=getCalcFieldId(o,i,r),("undefined"==typeof r[o.valKey]||isNaN(r[o.valKey]))&&(r[o.valKey]=0);var f="["+o.thisFieldId+"]";f=f.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),t=t.replace(new RegExp(f,"g"),r[o.valKey])}return t}function getCallForField(e,t){return"checkbox"==e.thisField.type||"select"==e.thisField.type?e.thisFieldCall=e.thisFieldCall+":checked,select"+t.fieldKeys[e.thisFieldId]+" option:selected,"+e.thisFieldCall+"[type=hidden]":"radio"==e.thisField.type||"scale"==e.thisField.type?e.thisFieldCall=e.thisFieldCall+":checked,"+e.thisFieldCall+"[type=hidden]":"textarea"==e.thisField.type&&(e.thisFieldCall=e.thisFieldCall+",textarea"+t.fieldKeys[e.thisFieldId]),e}function maybeDoCalcForSingleField(e){if("undefined"!=typeof __FRMCALC){var t=__FRMCALC,i=getFieldKey(e.id,e.name),r=maybeGetTriggerField(e);if(void 0!==t.calc[i]){var n=[];doSingleCalculation(t,i,n,r)}}}function getFieldKey(e,t){var i=e.replace("field_","");if(isRepeatingFieldByName(t)){for(var r=i.split("-"),n="",a=0;a<r.length-1;a++)n+=r[a];i=n}return i}function maybeGetTriggerField(e){var t=null;return isRepeatingFieldByName(e.name)&&(t=jQuery(e).closest(".frm_form_field")),t}function getCalcFieldId(e,t,i){if("undefined"!=typeof i[e.valKey]&&0!==i[e.valKey])return i;i[e.valKey]=0;var r;return e.inSection===!1?r=jQuery(e.thisFieldCall):(r=getSiblingField(e),(null===r||"undefined"==typeof r)&&(r=jQuery(e.thisFieldCall))),null===r||"undefined"==typeof r||r.length<1?i:(r.each(function(){var r=getOptionValue(e.thisField,this);if("date"==e.thisField.type){var n=getDateFieldValue(t.date,r);null!==n&&(i[e.valKey]=Math.ceil(n/864e5))}else{var a=r;""!==a&&0!==a&&(a=a.trim(),a=parseFloat(a.replace(/,/g,"").match(/-?[\d\.]+$/))),("undefined"==typeof a||isNaN(a)||""===a)&&(a=0),i[e.valKey]+=a}}),i)}function getDateFieldValue(e,t){var i=0;if(t)if("undefined"==typeof jQuery.datepicker){var r="-";e.indexOf("/")>-1&&(r="/");var n,a,l,d=e.split(r),o=t.split(r);n=a=l="";for(var f=0;f<d.length;f++)if("y"==d[f]){var s=(new Date).getFullYear()+15,c=s.toString().substr(2,2);n=o[f]>c?"19"+o[f]:"20"+o[f]}else"yy"==d[f]?n=o[f]:"m"==d[f]||"mm"==d[f]?(a=o[f],a.length<2&&(a="0"+a)):("d"==d[f]||"dd"==d[f])&&(l=o[f],l.length<2&&(l="0"+l));i=Date.parse(n+"-"+a+"-"+l)}else i=jQuery.datepicker.parseDate(e,t);else;return i}function getSiblingField(e){if("undefined"==typeof e.triggerField)return null;var t=e.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");if(t.length){var i=e.thisFieldCall.replace("[id=","[id^=");return t.find(i)}return null}function getOptionValue(e,t){var i;return i=isOtherOption(e,t)?getOtherValueAnyField(e,t):"checkbox"!==t.type&&"radio"!==t.type||!t.checked?jQuery(t).val():t.value,"undefined"==typeof i&&(i=""),i}function isOtherOption(e,t){var i=!1;if("hidden"==t.type)""!==getOtherValueLimited(t)&&(i=!0);else if("select"==e.type){var r=t.className;r&&r.indexOf("frm_other_trigger")>-1&&(i=!0)}else("checkbox"==e.type||"radio"==e.type)&&t.id.indexOf("-other_")>-1&&t.id.indexOf("-otext")<0&&(i=!0);return i}function getOtherValueLimited(e){var t="",i=document.getElementById(e.id+"-otext");return null!==i&&""!==i.value&&(t=i.value),t}function getOtherValueAnyField(e,t){var i=0;return"select"==e.type?"hidden"==t.type?isCurrentOptRepeating(t)||(i=getOtherValueLimited(t)):i=getOtherSelectValue(t):("checkbox"==e.type||"radio"==e.type)&&("hidden"==t.type||(i=getOtherValueLimited(t))),i}function isCurrentOptRepeating(e){var t=!1,i=e.name.split("[");return i.length>2&&(t=!0),t}function getOtherSelectValue(e){return jQuery(e).closest(".frm_other_container").find(".frm_other_input").val()}function validateForm(e,t){var i=[],r=jQuery(t).find(".frm_required_field input, .frm_required_field select, .frm_required_field textarea");if(r.length)for(var n=0,a=r.length;a>n;n++)i=checkRequiredField(r[n],i);var l=jQuery(t).find("input[type=email]");if(l.length)for(var d=0,o=l.length;o>d;d++)i=checkEmailField(l[d],i,l);var f=jQuery(t).find("input[type=number]");if(f.length)for(var s=0,c=f.length;c>s;s++)i=checkNumberField(f[s],i);return i}function validateField(e,t){var i=[],r=jQuery(t).closest(".frm_form_field");if(r.hasClass(".frm_required_field")&&(i=checkRequiredField(t,i)),i.length<1&&"email"==t.type){var n=jQuery(t).closest("form").find("input[type=email]");i=checkEmailField(t,i,n)}if(Object.keys(i).length>0)for(var a in i)addFieldError(r,a,i);else removeFieldError(r)}function checkRequiredField(e,t,i){return""===jQuery(e).val()&&(i=getFieldId(e,!0),t[i]=""),t}function checkEmailField(e,t,i){var r=e.value,n=getFieldId(e,!0),a=0===n.indexOf("conf_");if(""!==r||a){var l=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;if(l.test(r)===!1)t[n]="",a&&(t[n.replace("conf_","")]="");else if(a){var d=e.name.replace("conf_",""),o=i.filter('[name="'+d+'"]').val();o!==r&&(t[n]="",t[n.replace("conf_","")]="")}}return t}function checkNumberField(e,t){var i=e.value;if(isNaN(i/1)!==!1){var r=getFieldId(e,!0);t[r]=""}return t}function checkDateField(e,t){return t}function getFormErrors(e,t){jQuery(e).find('input[type="submit"], input[type="button"]').attr("disabled","disabled"),jQuery(e).find(".frm_ajax_loading").addClass("frm_loading_now"),"undefined"==typeof t&&jQuery(e).find('input[name="frm_action"]').val(),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(e).serialize()+"&action=frm_entries_"+t+"&nonce="+frm_js.nonce,success:function(t){if(t=t.replace(/^\s+|\s+$/g,""),0===t.indexOf("{")&&(t=jQuery.parseJSON(t)),""===t||!t||"0"===t||"object"!=typeof t&&0===t.indexOf("<!DOCTYPE")){var i=document.getElementById("frm_loading");if(null!==i){var r=jQuery(e).find("input[type=file]").val();"undefined"!=typeof r&&""!==r&&setTimeout(function(){jQuery(i).fadeIn("slow")},2e3)}var n=jQuery(e).find(".g-recaptcha");n.length&&(jQuery(e).find(".frm_next_page").length<1||jQuery(e).find(".frm_next_page").val()<1)&&n.closest(".frm_form_field").replaceWith('<input type="hidden" name="recaptcha_checked" value="'+frm_js.nonce+'">'),e.submit()}else if("object"!=typeof t){jQuery(e).find(".frm_ajax_loading").removeClass("frm_loading_now");var a=jQuery(e).find('input[name="form_id"]').val();if(jQuery(e).closest("#frm_form_"+a+"_container").replaceWith(t),frmFrontForm.scrollMsg(a),"function"==typeof frmThemeOverride_frmAfterSubmit){var l=jQuery('input[name="frm_page_order_'+a+'"]').val(),d=jQuery(t).find('input[name="form_id"]').val();frmThemeOverride_frmAfterSubmit(d,l,t,e)}var o=jQuery(e).find('input[name="id"]');o.length&&jQuery(document.getElementById("frm_edit_"+o.val())).find("a").addClass("frm_ajax_edited").click()}else{jQuery(e).find('input[type="submit"], input[type="button"]').removeAttr("disabled"),jQuery(e).find(".frm_ajax_loading").removeClass("frm_loading_now");var f=!0;jQuery(".form-field").removeClass("frm_blank_field"),jQuery(".form-field .frm_error").replaceWith("");var s="",c=!1,u=null;for(var m in t)if(u=jQuery(e).find(jQuery(document.getElementById("frm_field_"+m+"_container"))),u.length){if(!u.is(":visible")){var p=u.closest(".frm_toggle_container");p.length&&p.prev(".frm_trigger").click()}if(u.is(":visible")){f=!1,""===s&&(frmFrontForm.scrollMsg(m,e,!0),s="#frm_field_"+m+"_container");var h=jQuery(e).find("#frm_field_"+m+"_container .g-recaptcha");h.length&&(c=!0,grecaptcha.reset()),addFieldError(u,m,t)}}else if("redirect"==m)return void(window.location=t[m]);c!==!0&&jQuery(e).find(".g-recaptcha").closest(".frm_form_field").replaceWith('<input type="hidden" name="recaptcha_checked" value="'+frm_js.nonce+'">'),f&&e.submit()}},error:function(){jQuery(e).find('input[type="submit"], input[type="button"]').removeAttr("disabled"),e.submit()}})}function addFieldError(e,t,i){e.length&&e.is(":visible")&&(e.addClass("frm_blank_field"),"function"==typeof frmThemeOverride_frmPlaceError?frmThemeOverride_frmPlaceError(t,i):e.append('<div class="frm_error">'+i[t]+"</div>"))}function removeFieldError(e){e.removeClass("frm_blank_field"),e.find(".frm_error").remove()}function clearDefault(){toggleDefault(jQuery(this),"clear")}function replaceDefault(){toggleDefault(jQuery(this),"replace")}function toggleDefault(e,t){var i=e.data("frmval").replace(/(\n|\r\n)/g,"\r");if(""===i||"undefined"==typeof i)return!1;var r=e.val().replace(/(\n|\r\n)/g,"\r");"replace"==t?""===r&&e.addClass("frm_default").val(i):r==i&&e.removeClass("frm_default").val("")}function resendEmail(){var e=jQuery(this),t=e.data("eid"),i=e.data("fid");return e.append('<span class="spinner" style="display:inline"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:t,form_id:i,nonce:frm_js.nonce},success:function(t){e.replaceWith(t)}}),!1}function prepareGraphTypes(e,t){for(var i=0;i<e.length;i++)prepareGraphs(e[i],t)}function prepareGraphs(e,t){google.load("visualization","1.0",{packages:[t],callback:function(){"table"==t?compileGoogleTable(e):compileGraph(e)}})}function compileGoogleTable(e){var t=new google.visualization.DataTable,i=!1;-1!==jQuery.inArray("id",e.options.fields)&&(i=!0,t.addColumn("number",frm_js.id));for(var r=e.fields.length,n="string",a=0,l=r;l>a;a++){var d=e.fields[a];n=getGraphType(d),t.addColumn(n,d.name)}var o=!1;e.options.edit_link&&(o=!0,t.addColumn("string",e.options.edit_link));var f=!1;e.options.delete_link&&(f=!0,t.addColumn("string",e.options.delete_link));var s=0;if(null!==e.entries){var c=e.entries.length;t.addRows(c);for(var u=0,m=0,p=c;p>m;m++){s=0;var h=e.entries[m];i&&(t.setCell(u,s,h.id),s++);for(var _=0,y=r;y>_;_++){var g=e.fields[_];n=getGraphType(g);var v=h.metas[g.id];"number"!=n||null!==v&&""!==v?"boolean"==n&&(v=null===v||"false"==v||v===!1?!1:!0):v=0,t.setCell(u,s,v),s++}o&&("undefined"!=typeof h.editLink?t.setCell(u,s,'<a href="'+h.editLink+'">'+e.options.edit_link+"</a>"):t.setCell(u,s,""),s++),f&&("undefined"!=typeof h.deleteLink?t.setCell(u,s,'<a href="'+h.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+e.options.confirm+'">'+e.options.delete_link+"</a>"):t.setCell(u,s,"")),u++}}else for(t.addRows(1),s=0,a=0,l=r;l>a;a++)s>0?t.setCell(0,s,""):t.setCell(0,s,e.options.no_entries),s++;var F=new google.visualization.Table(document.getElementById("frm_google_table_"+e.options.form_id));F.draw(t,e.graphOpts)}function getGraphType(e){var t="string";if("number"==e.type)t="number";else if("checkbox"==e.type||"select"==e.type){var i=e.options.length;"select"==e.type&&""===e.options[0]&&("post_status"==e.field_options.post_field?i=3:i-=1),1==i&&(t="boolean")}return t}function compileGraph(e){var t=new google.visualization.DataTable,i=!1,r=!1,n=e.rows.length;if(n>0)if("table"==e.type){i=!0;var a=e.rows[n-1],l=a[0]+1;t.addRows(l);for(var d=0,o=n;o>d;d++)t.setCell(e.rows[d])}else{var f=e.rows[0];if("undefined"!=typeof f.tooltip){i=!0,r=!0;for(var s=0,c=n;c>s;s++){var u=e.rows[s].tooltip;delete e.rows[s].tooltip;var m=Object.keys(e.rows[s]).map(function(t){return e.rows[s][t]});e.rows[s]=m,e.rows[s].push(u)}}}var p=e.cols.length;if(i){if(p>0)for(var h=0,_=p;_>h;h++){var y=e.cols[h];t.addColumn(y.type,y.name)}r&&(t.addColumn({type:"string",role:"tooltip"}),t.addRows(e.rows))}else{var g=[];g[0]=[];for(var v=0,F=p;F>v;v++)g[0].push(e.cols[v].name);g=g.concat(e.rows),t=google.visualization.arrayToDataTable(g)}var j=e.type.charAt(0).toUpperCase()+e.type.slice(1)+"Chart",Q=new google.visualization[j](document.getElementById("chart_"+e.graph_id));Q.draw(t,e.options)}function nextUpload(){var e=jQuery(this),t=e.data("fid");e.wrap('<div class="frm_file_names frm_uploaded_files">');for(var i=e.get(0).files,r=0;r<i.length;r++)e.after(0===r?i[r].name+' <a href="#" class="frm_clear_file_link">'+frm_js.remove+"</a>":i[r].name+"<br/>");e.hide();var n="file"+t,a=e.attr("name");if(a!="item_meta["+t+"][]"){var l=a.replace("item_meta[","").replace("[]","").split("][");3==l.length&&(n=n+"-"+l[1])}e.closest(".frm_form_field").find(".frm_uploaded_files:last").after('<input name="'+a+'" data-fid="'+t+'"class="frm_transparent frm_multiple_file" multiple="multiple" type="file" />')}function removeDiv(){fadeOut(jQuery(this).parent(".frm_uploaded_files"))}function clearFile(){return jQuery(this).parent(".frm_file_names").replaceWith(""),!1}function removeRow(){var e="frm_section_"+jQuery(this).data("parent")+"-"+jQuery(this).data("key"),t=jQuery(document.getElementById(e)),i=t.find("input, select, textarea");return t.fadeOut("slow",function(){t.remove(),i.each(function(){if("file"!=this.type){var e=this.name.replace("item_meta[","").split("]")[2].replace("[","");doCalculation(e,jQuery(this))}})}),!1}function addRow(){if(currentlyAddingRow===!0)return!1;currentlyAddingRow=!0;var e=jQuery(this).data("parent"),t=0;return jQuery(".frm_repeat_"+e).length>0&&(t=1+parseInt(jQuery(".frm_repeat_"+e+":last").attr("id").replace("frm_section_"+e+"-","")),"undefined"==typeof t&&(t=1)),jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:e,i:t,nonce:frm_js.nonce},success:function(t){var i=t.html,r=jQuery(i).hide().fadeIn("slow");jQuery(".frm_repeat_"+e+":last").after(r);var n,a,l=["other"],d="reset";addingRow=r.attr("id"),jQuery(i).find("input, select, textarea").each(function(){"file"!=this.type&&(n=this.name.replace("item_meta[","").split("]")[2].replace("[",""),-1==jQuery.inArray(n,l)&&(a=jQuery("#"+this.id),l.push(n),checkDependentField(n,null,a,d),doCalculation(n,a),d="persist"))}),addingRow="";for(var o=t.logic.check.length,f=0,s=o;s>f;f++)-1==jQuery.inArray(t.logic.check[f],l)&&jQuery(i).find(".frm_field_"+t.logic.check[f]+"_container").length<1&&(checkDependentField(t.logic.check[f],null,null,d),d="persist");var c=jQuery(i).find(".star");c.length>0&&jQuery(".star").rating();var u=jQuery(i).find(".frm_chzn");u.length>0&&jQuery().chosen&&jQuery(".frm_chzn").chosen({allow_single_deselect:!0}),"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(e,t),currentlyAddingRow=!1},error:function(){currentlyAddingRow=!1}}),!1}function editEntry(){var e=jQuery(this),t=e.data("entryid"),i=e.data("prefix"),r=e.data("pageid"),n=e.data("formid"),a=e.data("edit"),l=e.data("fields"),d=e.data("excludefields"),o=jQuery(document.getElementById(i+t)),f=o.html();return o.html('<span class="frm-loading-img" id="'+i+t+'"></span><div class="frm_orig_content" style="display:none">'+f+"</div>"),jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:r,entry_id:t,id:n,nonce:frm_js.nonce,fields:l,exclude_fields:d},success:function(t){o.children(".frm-loading-img").replaceWith(t),e.removeClass("frm_inplace_edit").addClass("frm_cancel_edit"),e.html(a)}}),!1}function cancelEdit(){var e=jQuery(this),t=e.data("entryid"),i=e.data("prefix"),r=e.data("edit");if(!e.hasClass("frm_ajax_edited")){var n=jQuery(document.getElementById(i+t));n.children(".frm_forms").replaceWith(""),n.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content")}return e.removeClass("frm_cancel_edit").addClass("frm_inplace_edit"),e.html(r),!1}function deleteEntry(){var e=jQuery(this),t=e.data("deleteconfirm");if(confirm(t)){var i=e.data("entryid"),r=e.data("prefix");e.replaceWith('<span class="frm-loading-img" id="frm_delete_'+i+'"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:i,nonce:frm_js.nonce},success:function(e){"success"==e.replace(/^\s+|\s+$/g,"")?(jQuery(document.getElementById(r+i)).fadeOut("slow"),jQuery(document.getElementById("frm_delete_"+i)).fadeOut("slow")):jQuery(document.getElementById("frm_delete_"+i)).replaceWith(e)
2
- }})}return!1}function fadeOut(e){e.fadeOut("slow",function(){e.remove()})}function confirmClick(){var e=jQuery(this).data("frmconfirm");return confirm(e)}function toggleDiv(){var e=jQuery(this).data("frmtoggle");return jQuery(e).is(":visible")?jQuery(e).slideUp("fast"):jQuery(e).slideDown("fast"),!1}function empty(e){if(null!==e)for(;e.firstChild;)e.removeChild(e.firstChild)}function objectSearch(e,t){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t)return i;return null}function isNotEmptyArray(e){return jQuery.isArray(e)&&(e.length>1||""!==e[0])}function isNumeric(e){return!jQuery.isArray(e)&&e-parseFloat(e)+1>=0}function getInputsInContainer(e){return e.find('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}function getFieldName(e,t){var i="item_meta["+e+"]";return isRepeatingFieldById(e)&&(i=getRepeatingFieldName(e,t)),i}function getHelpers(){var e=document.getElementById("frm_helpers").value;return e=e?JSON.parse(e):[]}function getRepeatingFieldName(e,t){var i="";if(t.indexOf("frm_section")>-1){var r=t.replace("frm_section_","").split("-");i="item_meta["+r[0]+"]["+r[1]+"]["+e+"]"}else{var n=t.replace("frm_field_","").replace("_container","").split("-");i="item_meta["+n[1]+"]["+n[2]+"]["+e+"]"}return i}function getRepeatingFieldHtmlId(e,t){var i=t.replace("frm_section_","").split("-"),r="frm_field_"+e+"-"+i[0]+"-"+i[1]+"_container";return r}function maybeGetFirstElement(e){return e.length>1&&(e=e.eq(0)),e}function isRepeatingFieldById(e){var t=document.getElementById("frm_field_"+e+"_container");if("undefined"!=typeof t&&null!=t)return!1;var i=jQuery('input[name^="item_meta['+e+']"],select[name^="item_meta['+e+']"], textarea[name^="item_meta['+e+']"]');return i.length<1?!0:!1}function addIndexOfFallbackForIE8(){Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,i=Number(arguments[1])||0;for(i=0>i?Math.ceil(i):Math.floor(i),0>i&&(i+=t);t>i;i++)if(i in this&&this[i]===e)return i;return-1})}function addTrimFallbackForIE8(){"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function addFilterFallbackForIE8(){Array.prototype.filter||(Array.prototype.filter=function(e){if(void 0===this||null===this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var r=[],n=arguments[1],a=0;i>a;a++)if(a in t){var l=t[a];e.call(n,l,a,t)&&r.push(l)}return r})}function addKeysFallbackForIE8(){Object.keys||(Object.keys=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t})}function getCheckedVal(e,t){var i=[];if("undefined"==typeof document.querySelector){var r=jQuery("#"+e+' input[type=checkbox]:checked, input[type=hidden][name^="'+t+'"]');r.each(function(){i.push(this.value)})}else for(var n=document.querySelectorAll("#"+e+' input[type=checkbox], input[type=hidden][name^="'+t+'"]'),a=0;a<n.length;a++)("checkbox"==n[a].type&&n[a].checked||"hidden"==n[a].type)&&i.push(n[a].value);return i}var show_fields=[],hide_later=[],hidden_fields=[],frm_checked_dep=[],addingRow="",currentlyAddingRow=!1,action="",jsErrors=[];return{init:function(){jQuery(document).on("click",".frm_trigger",toggleSection);var e=jQuery(".frm_blank_field");e.length&&e.closest(".frm_toggle_container").prev(".frm_trigger").click(),jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()}),jQuery(document).on("focus",".frm_toggle_default",clearDefault),jQuery(document).on("blur",".frm_toggle_default",replaceDefault),jQuery(".frm_toggle_default").blur(),jQuery(document.getElementById("frm_resend_email")).click(resendEmail),jQuery(document).on("change",".frm_multiple_file",nextUpload),jQuery(document).on("click",".frm_clear_file_link",clearFile),jQuery(document).on("click",".frm_remove_link",removeDiv),jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())}),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"]',maybeCheckDependent),jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm-show-form .frm_save_draft',setNextPage),jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',showOtherText),jQuery(document).on("change","input[type=file].frm_transparent",showFileUploadText),jQuery(document).on("click",".frm_remove_form_row",removeRow),jQuery(document).on("click",".frm_add_form_row",addRow),jQuery(document).on("click","a[data-frmconfirm]",confirmClick),jQuery("a[data-frmtoggle]").click(toggleDiv),jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",editEntry),jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",cancelEdit),jQuery(".frm_ajax_delete").click(deleteEntry),jQuery(".frm_month_heading, .frm_year_heading").click(function(){var e=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");e.hasClass("ui-icon-triangle-1-e")?(e.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(e.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())}),addIndexOfFallbackForIE8(),addTrimFallbackForIE8(),addFilterFallbackForIE8(),addKeysFallbackForIE8()},submitForm:function(e){e.preventDefault(),jQuery(this).find(".wp-editor-wrap").length&&"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();var t=this;if(action=jQuery(t).find('input[name="frm_action"]').val(),jsErrors=[],frmFrontForm.getAjaxFormErrors(t),0===Object.keys(jsErrors).length)getFormErrors(t,action);else{jQuery(".form-field").removeClass("frm_blank_field"),jQuery(".form-field .frm_error").replaceWith("");for(var i in jsErrors){var r=jQuery(t).find(jQuery("#frm_field_"+i+"_container"));addFieldError(r,i,jsErrors)}}},getAjaxFormErrors:function(e){"function"==typeof frmThemeOverride_jsErrors&&(jsErrors=frmThemeOverride_jsErrors(action,e))},checkFormErrors:function(e,t){getFormErrors(e,t)},scrollToID:function(e){var t=jQuery(document.getElementById(e).offset());window.scrollTo(t.left,t.top)},scrollMsg:function(e,t,i){var r="";if(r="undefined"==typeof t?jQuery(document.getElementById("frm_form_"+e+"_container")).offset().top:jQuery(t).find(document.getElementById("frm_field_"+e+"_container")).offset().top){r-=frm_js.offset;var n=jQuery("html").css("margin-top"),a=jQuery("body").css("margin-top");if((n||a)&&(r=r-parseInt(n)-parseInt(a)),r&&window.innerHeight){var l=document.documentElement.scrollTop||document.body.scrollTop,d=l+window.innerHeight;if(r>d||l>r)return"undefined"==typeof i?jQuery(window).scrollTop(r):jQuery("html,body").animate({scrollTop:r},500),!1}}},hideCondFields:function(e){e=JSON.parse(e);for(var t=e.length,i=0,r=t;r>i;i++){var n=document.getElementById("frm_field_"+e[i]+"_container");null!==n?n.style.display="none":jQuery(".frm_field_"+e[i]+"_container").hide()}},checkDependent:function(e){e=JSON.parse(e);for(var t=e.length,i="reset",r=0,n=t;n>r;r++)checkDependentField(e[r],null,null,i),i="persist"},loadGoogle:function(){if("undefined"!=typeof google&&google&&google.load)for(var e=__FRMTABLES,t=Object.keys(e),i=0;i<t.length;i++)prepareGraphTypes(e[t[i]],t[i]);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(e,t){var i=jQuery(e).parents("form:first").find('input[name="id"]');jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_fields_ajax_time_options",time_field:t,date_field:e.id,entry_id:i?i.val():"",date:jQuery(e).val(),nonce:frm_js.nonce},success:function(e){var i=jQuery(document.getElementById(t));if(i.find("option").removeAttr("disabled"),e&&""!==e)for(var r in e)i.find('option[value="'+r+'"]').attr("disabled","disabled")}})},escapeHtml:function(e){return e.replace(/&/g,"&").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},invisible:function(e){jQuery(e).css("visibility","hidden")},visible:function(e){jQuery(e).css("visibility","visible")}}}function frmUpdateField(e,t,i,r,n){jQuery(document.getElementById("frm_update_field_"+e+"_"+t)).html('<span class="frm-loading-img"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:e,field_id:t,value:i,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+e+"_"+t+"_"+n)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+e+"_"+t+"_"+n)).replaceWith(r)}})}function frmEditEntry(e,t,i,r,n,a){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var l=jQuery(document.getElementById("frm_edit_"+e)),d=l.html(),o=jQuery(document.getElementById(t+e)),f=o.html();o.html('<span class="frm-loading-img" id="'+t+e+'"></span><div class="frm_orig_content" style="display:none">'+f+"</div>"),jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:i,entry_id:e,id:r,nonce:frm_js.nonce},success:function(f){o.children(".frm-loading-img").replaceWith(f),l.replaceWith('<span id="frm_edit_'+e+'"><a onclick="frmCancelEdit('+e+",'"+t+"','"+frmFrontForm.escapeHtml(d)+"',"+i+","+r+",'"+a+'\')" class="'+a+'">'+n+"</a></span>")}})}function frmCancelEdit(e,t,i,r,n,a){console.warn("DEPRECATED: function frmCancelEdit in v2.0.13 use frmFrontForm.cancelEdit");var l=jQuery(document.getElementById("frm_edit_"+e)),d=l.find("a"),o=d.html();if(!d.hasClass("frm_ajax_edited")){var f=jQuery(document.getElementById(t+e));f.children(".frm_forms").replaceWith(""),f.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content")}l.replaceWith('<a id="frm_edit_'+e+'" class="frm_edit_link '+a+'" href="javascript:frmEditEntry('+e+",'"+t+"',"+r+","+n+",'"+frmFrontForm.escapeHtml(o)+"','"+a+"')\">"+i+"</a>")}function frmDeleteEntry(e,t){console.warn("DEPRECATED: function frmDeleteEntry in v2.0.13 use frmFrontForm.deleteEntry"),jQuery(document.getElementById("frm_delete_"+e)).replaceWith('<span class="frm-loading-img" id="frm_delete_'+e+'"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:e,nonce:frm_js.nonce},success:function(i){"success"==i.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById(t+e)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+e)).replaceWith(i)}})}function frmOnSubmit(e){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm"),frmFrontForm.submitForm(e,this)}function frm_resend_email(e,t){console.warn("DEPRECATED: function frm_resend_email in v2.0"),$link=jQuery(document.getElementById("frm_resend_email")),$link.append('<span class="spinner" style="display:inline"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:e,form_id:t,nonce:frm_js.nonce},success:function(e){$link.replaceWith(e)}})}var frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(){frmFrontForm.init()});
1
+ function frmFrontFormJS(){"use strict";function setNextPage(e){var t=jQuery(this),i=t.attr("type");"submit"!==i&&e.preventDefault();var r=t.parents("form:first"),n="",a="",l=this.name;"frm_prev_page"===l||-1!==this.className.indexOf("frm_prev_page")?n=jQuery(r).find(".frm_next_page").attr("id").replace("frm_next_p_",""):("frm_save_draft"===l||-1!==this.className.indexOf("frm_save_draft"))&&(a=1),jQuery(".frm_next_page").val(n),jQuery(".frm_saving_draft").val(a),"submit"!==i&&r.trigger("submit")}function toggleSection(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast"),jQuery(this).toggleClass("active").children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-s ui-icon-triangle-1-e")}function showFileUploadText(){this.className=this.className.replace("frm_transparent","");var e=this.parentNode.getElementsByTagName("a")[0].className;-1==e.indexOf("frm_clear_file_link")&&(e+=" frm_hidden")}function showOtherText(){var e=this.type,t=!1,i=!1;if("select-one"===e){i=!0;var r=this.options[this.selectedIndex];"frm_other_trigger"===r.className&&(t=!0)}else if("select-multiple"===e){i=!0;var n=this.options;t=!1;for(var a=0;a<n.length;a++)if("frm_other_trigger"===n[a].className&&n[a].selected){t=!0;break}}if(i){var l=jQuery(this).parent().children(".frm_other_input");l.length&&(t?l[0].className=l[0].className.replace("frm_pos_none",""):(l[0].className.indexOf("frm_pos_none")<1&&(l[0].className=l[0].className+" frm_pos_none"),l[0].value=""))}else"radio"===e?jQuery(this).is(":checked")&&(jQuery(this).closest(".frm_radio").children(".frm_other_input").removeClass("frm_pos_none"),jQuery(this).closest(".frm_radio").siblings().children(".frm_other_input").addClass("frm_pos_none").val("")):"checkbox"===e&&(this.checked?jQuery(this).closest(".frm_checkbox").children(".frm_other_input").removeClass("frm_pos_none"):jQuery(this).closest(".frm_checkbox").children(".frm_other_input").addClass("frm_pos_none").val(""))}function maybeCheckDependent(e){var t=getFieldId(this);if(t&&"undefined"!=typeof t){var i="reset";if(e.frmTriggered){if(e.frmTriggered==t)return;i="persist"}checkDependentField(t,null,jQuery(this),i),doCalculation(t,jQuery(this))}}function getFieldId(e,t){var i="";i=e instanceof jQuery?e.attr("name"):e.name;var r=i.replace("item_meta[","").replace("[]","").split("]");if(r.length<1)return 0;r=r.filter(function(e){return""!==e});var n=r[0],a=!1;return 1===r.length||"[form"==r[1]?n:(jQuery('input[name="item_meta['+n+'][form]"]').length&&(n=r[2].replace("[",""),a=!0),"other"===n&&(n=a?r[3].replace("[",""):r[1].replace("[","")),t===!0&&(n=n+"-"+r[0]+"-"+r[1].replace("[","")),n)}function checkDependentField(e,t,i,r){var n=getRulesForField(e);if("undefined"!=typeof n){("undefined"==typeof t||null===t)&&(t="go"),"persist"!==r&&(show_fields=[],hidden_fields=[]);for(var a=maybeSetRowId(i),l=n.length,d=0,o=l;o>d;d++)n[d].FieldName===e?hideOrShowField(d,n[d],t,i):hideOrShowField(d,n[d],t),d===l-1&&(hideFieldLater(t),a&&(addingRow=""))}}function maybeSetRowId(e){var t=!1;if(""===addingRow&&"undefined"!=typeof e&&null!==e){e=maybeGetFirstElement(e);var i=e.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");"undefined"!=typeof i&&"undefined"!=typeof i.attr("id")&&(addingRow=i.attr("id"),t=!0)}return t}function getRulesForField(e){if("undefined"!=typeof __FRMRULES&&"undefined"!=typeof __FRMRULES[e]){var t=compileRules(__FRMRULES[e]);return t}}function compileRules(e){for(var t=[],i=0,r=e.length;r>i;i++){var n=e[i];if("undefined"!=typeof n)for(var a=0,l=n.Conditions.length;l>a;a++){var d=n.Conditions[a];d.HideField=n.Setting.FieldName,d.MatchType=n.MatchType,d.Show=n.Show,d.FormId=n.FormId,t.push(d)}}return t}function hideOrShowField(e,t,i,r){if(t.inputName="item_meta["+t.FieldName+"]",t.hiddenName="item_meta["+t.HideField+"]",t.containerID="frm_field_"+t.FieldName+"_container",t.hideContainerID="frm_field_"+t.HideField+"_container",""!==addingRow)return void checkRepeatingFieldInSingleRow(e,t,i,addingRow);if(("undefined"==typeof r||null===r)&&(r=jQuery('input[name^="'+t.inputName+'"], textarea[name^="'+t.inputName+'"], select[name^="'+t.inputName+'"]'),r.length<1))return void checkLogicForTwoRepeatingFields(e,t,i);var n=getBasicEnteredValue(t);return isRepeatingFieldById(t.HideField)?void checkLogicForRepeatingHideField(e,t,n,i):(setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,n),void hideFieldNow(e,t,i))}function checkRepeatingFieldInSingleRow(e,t,i,r){isRepeatingFieldById(t.FieldName)&&(t.inputName=getRepeatingFieldName(t.FieldName,r),t.containerID=getRepeatingFieldHtmlId(t.FieldName,r)),t.hideContainerID=getRepeatingFieldHtmlId(t.HideField,r);var n=getBasicEnteredValue(t);setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,n),hideFieldNow(e,t,i)}function checkLogicForTwoRepeatingFields(e,t,i){for(var r=document.getElementsByClassName("frm_field_"+t.FieldName+"_container"),n=0;n<r.length;n++){t.inputName=getRepeatingFieldName(t.FieldName,r[n].id),t.containerID=r[n].id,t.hideContainerID=r[n].id.replace(t.FieldName,t.HideField);var a=getBasicEnteredValue(t);setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,a),hideFieldNow(e,t,i)}}function checkLogicForRepeatingHideField(e,t,i,r){for(var n=document.getElementsByClassName("frm_field_"+t.HideField+"_container"),a=0;a<n.length;a++)t.hideContainerID=n[a].id,setEmptyKeyInShowFieldsArray(t),updateShowFields(e,t,i),hideFieldNow(e,t,r)}function getBasicEnteredValue(e){var t="";if("checkbox"===e.Type||"data-checkbox"===e.Type){var i=getCheckedVal(e.containerID,e.inputName);return t=i.length?i:""}return t=jQuery('input[name="'+e.inputName+'"][type="hidden"]').val(),"undefined"!=typeof t?t:(t="radio"==e.Type||"data-radio"===e.Type?jQuery('input[name="'+e.inputName+'"]:checked').val():"select"===e.Type||"data-select"===e.Type?jQuery('select[name^="'+e.inputName+'"]').val():jQuery('input[name="'+e.inputName+'"]').val(),"undefined"==typeof t&&(t=""),t)}function setEmptyKeyInShowFieldsArray(e){"undefined"==typeof show_fields[e.hideContainerID]&&(show_fields[e.hideContainerID]=[])}function updateShowFields(e,t,i){show_fields[t.hideContainerID][e]=null===i||""===i||i.length<1?!1:{funcName:"getDataOpts",f:t,sel:i},"checkbox"===t.Type||"data-checkbox"===t.Type&&"undefined"==typeof t.LinkedField?updateShowFieldsForCheckbox(e,t,i):"undefined"!=typeof t.LinkedField&&0===t.Type.indexOf("data-")?updateShowFieldsForDynamicField(e,t,i):"undefined"==typeof t.Value&&0===t.Type.indexOf("data")?(t.Value=""===i?"1":i,show_fields[t.hideContainerID][e]=operators(t.Condition,t.Value,i),t.Value=void 0):show_fields[t.hideContainerID][e]=operators(t.Condition,t.Value,i)}function updateShowFieldsForCheckbox(e,t,i){show_fields[t.hideContainerID][e]=!1;var r=!1;if(""!==i){"!="===t.Condition&&(show_fields[t.hideContainerID][e]=!0);for(var n=0;n<i.length;n++)r=operators(t.Condition,t.Value,i[n]),"!="===t.Condition?show_fields[t.hideContainerID][e]===!0&&r===!1&&(show_fields[t.hideContainerID][e]=!1):show_fields[t.hideContainerID][e]===!1&&r&&(show_fields[t.hideContainerID][e]=!0)}else r=operators(t.Condition,t.Value,""),show_fields[t.hideContainerID][e]===!1&&r&&(show_fields[t.hideContainerID][e]=!0)}function updateShowFieldsForDynamicField(e,t,i){("undefined"==typeof t.DataType||"data"===t.DataType)&&(""===i?hideAndClearDynamicField(t.hideContainerID,t.HideField,"hide"):"data-radio"===t.Type?show_fields[t.hideContainerID][e]="undefined"==typeof t.DataType?operators(t.Condition,t.Value,i):{funcName:"getData",f:t,sel:i}:"data-checkbox"===t.Type||"data-select"===t.Type&&isNotEmptyArray(i)?(hideAndClearDynamicField(t.hideContainerID,t.HideField,"show"),show_fields[t.hideContainerID][e]=!0,getData(t,i,0)):"data-select"===t.Type&&(show_fields[t.hideContainerID][e]={funcName:"getData",f:t,sel:i}))}function hideFieldNow(e,t,i){if("all"===t.MatchType||show_fields[t.hideContainerID][e]===!1)return void hide_later.push({result:show_fields[t.hideContainerID][e],show:t.Show,match:t.MatchType,FieldName:t.FieldName,HideField:t.HideField,hideContainerID:t.hideContainerID,FormId:t.FormId});var r="none";if("show"===t.Show){if(show_fields[t.hideContainerID][e]!==!0)return void showField(show_fields[t.hideContainerID][e],t.FieldName,i);r=""}var n=jQuery(document.getElementById(t.hideContainerID));"none"==r?routeToHideFieldAndClearVal(n,t):routeToShowFieldAndSetVal(n,t)}function hideFieldLater(e){jQuery.each(hide_later,function(t,i){if(delete hide_later[t],"undefined"!=typeof i&&"undefined"!=typeof i.result){var r=jQuery("#"+i.hideContainerID),n=i.show;("any"===i.match&&-1===jQuery.inArray(!0,show_fields[i.hideContainerID])||"all"===i.match&&jQuery.inArray(!1,show_fields[i.hideContainerID])>-1)&&(n="show"===i.show?"hide":"show"),"show"===n?(routeToShowFieldAndSetVal(r,i),typeof i.result!==!1&&typeof i.result!==!0&&showField(i.result,i.FieldName,e)):routeToHideFieldAndClearVal(r,i)}})}function routeToHideFieldAndClearVal(e,t){if(e.length)hideFieldAndClearValue(e,t);else{var i=getFieldName(t.HideField,t.hideContainerID),r=jQuery('input[name^="'+i+'"]');clearValueForInputs(r)}addToHideFields(t.hideContainerID,t.FormId)}function hideFieldAndClearValue(e,t){if(e.hide(),-1===jQuery.inArray(e.attr("id"),hidden_fields)){var i=t.HideField;hidden_fields[i]=e.attr("id");var r=getInputsInContainer(e);r.length&&clearValueForInputs(r)}}function clearValueForInputs(e){e.prop("checked",!1).prop("selectedIndex",0),e.not(":checkbox, :radio, select").val("");var t=!1;e.each(function(){if("SELECT"==this.tagName){var e=document.getElementById(this.id+"_chosen");null!==e&&jQuery(this).trigger("chosen:updated")}(t===!1||["checkbox","radio"].indexOf(this.type)<0)&&triggerChange(jQuery(this)),t=!0})}function addToHideFields(e,t){var i=document.getElementById("frm_hide_fields_"+t),r=i.value;r=r?JSON.parse(r):[],r.indexOf(e)>-1||(r.push(e),r=JSON.stringify(r),i.value=r)}function hideAndClearDynamicField(e,t,i){-1===jQuery.inArray(e,hidden_fields)&&(hidden_fields[t]=e,e=jQuery(document.getElementById(e)),"hide"===i&&e.hide(),e.find(".frm_data_field_container").empty())}function routeToShowFieldAndSetVal(e,t){if(e.length)showFieldAndSetValue(e,t);else{var i=getFieldName(t.HideField,t.hideContainerID),r=jQuery('input[name^="'+i+'"]');setValForInputs(r)}removeFromHideFields(t.hideContainerID,t.FormId)}function showFieldAndSetValue(e){var t=getInputsInContainer(e);setValForInputs(t),e.show()}function setValForInputs(e){if(e.length)for(var t=0;t<e.length;t++)setDefaultValue(jQuery(e[t])),maybeDoCalcForSingleField(e[t])}function setDefaultValue(e){var t=e.length;if(e.is(":checkbox, :radio")){if(e.is(":checked"))return}else if(e.val())return;if(t)for(var i=0,r=t;r>i;i++){var n=jQuery(e[i]),a=n.data("frmval");"undefined"!=typeof a&&(n.is(":checkbox, :radio")?(n.val()==a||jQuery.isArray(a)&&-1!==jQuery.inArray(n.val(),a))&&(n.prop("checked",!0),triggerChange(n)):(n.val(a),triggerChange(n)))}}function removeFromHideFields(e,t){var i=document.getElementById("frm_hide_fields_"+t),r=i.value;if(r){r=JSON.parse(r);var n=r.indexOf(e);n>-1&&(r.splice(n,1),r=JSON.stringify(r),i.value=r)}}function triggerChange(e,t){"undefined"==typeof t&&(t="dependent"),e.length>1&&(e=e.eq(0)),e.trigger({type:"change",selfTriggered:!0,frmTriggered:t})}function operators(e,t,i){if("undefined"==typeof i&&(i=""),jQuery.isArray(i)&&jQuery.inArray(t,i)>-1&&(i=t),-1!==String(t).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)&&(t=parseFloat(t),i=parseFloat(i)),"-1"!=String(t).indexOf("&quot;")&&operators(e,t.replace("&quot;",'"'),i))return!0;var r={"==":function(e,t){return e==t},"!=":function(e,t){return e!=t},"<":function(e,t){return e>t},">":function(e,t){return t>e},LIKE:function(e,t){return t?-1!=t.indexOf(e):0},"not LIKE":function(e,t){return t?-1==t.indexOf(e):1}};return r[e](t,i)}function showField(e,t,i){"getDataOpts"==e.funcName?getDataOpts(e.f,e.sel,t,i):"getData"==e.funcName&&getData(e.f,e.sel,0)}function getData(e,t,i){var r=document.getElementById(e.hideContainerID),n=jQuery(r).find(".frm_data_field_container");return 0===n.length?!0:(i||n.html('<span class="frm-loading-img"></span>'),void jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_get_data",entry_id:t,field_id:e.LinkedField,current_field:e.HideField,hide_id:e.hideContainerID,nonce:frm_js.nonce},success:function(e){i?n.append(e):n.html(e);var t=n.children("input"),a=t.val();return r.style.display=""===e&&!i||""===a?"none":"",triggerChange(t),!0}}))}function getDataOpts(e,t,i,r){if(!("stop"==r&&jQuery.inArray(e.HideField,frm_checked_dep)>-1&&e.parentField&&"hidden"==e.parentField.attr("type"))){var n=jQuery("#"+e.hideContainerID).find('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]'),a=getPrevFieldValue(n),l=n.data("frmval");if("select"!=e.DataType||"stop"!=r&&!jQuery("#"+e.hideContainerID+" .frm-loading-img").length||!(jQuery.inArray(e.HideField,frm_checked_dep)>-1)){frm_checked_dep.push(e.HideField);var d=document.getElementById(e.hideContainerID),o=jQuery(d).find(".frm_data_field_container");if(0===o.length&&n.length)return checkDependentField(e.HideField,"stop",n),!1;if(""!==e.Value){var f=operators(e.Condition,e.Value,t);if(!f)return d.style.display="none",o.html(""),checkDependentField(e.HideField,"stop",n),!1}o.html('<span class="frm-loading-img" style="visibility:visible;display:inline;"></span>');var s=(e.hiddenName,e.DataType);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",hide_field:i,entry_id:t,selected_field_id:e.LinkedField,field_id:e.HideField,default_value:l,hide_id:e.hideContainerID,nonce:frm_js.nonce},success:function(t){o.html(t);var i=o.find("select, input, textarea"),r=1;if("hidden"==i.attr("type")&&(r=i.val()),""===t||""===r?(d.style.display="none",a=""):"all"!=e.MatchType&&(d.style.display=""),""!==t)if(""!==a){if(!jQuery.isArray(a)){var n=[];n.push(a),a=n}jQuery.each(a,function(e,t){if("undefined"!=typeof t&&""!==t)if("checkbox"==s||"radio"==s)i.length>1?i.filter('[value="'+t+'"]').attr("checked","checked"):i.val()==t&&i.attr("checked","checked");else if("select"==s){var r=i.children('option[value="'+t+'"]');r.length?r.prop("selected",!0):a.splice(e,1)}else i.val(t)})}else setDefaultValue(getInputsInContainer(o));i.hasClass("frm_chzn")&&jQuery().chosen&&jQuery(".frm_chzn").chosen({allow_single_deselect:!0}),triggerChange(i)}})}}}function getPrevFieldValue(e){var t=[],i="";return e.each(function(){i=this.value,"radio"===this.type||"checkbox"===this.type?this.checked===!0&&t.push(i):""!==i&&t.push(i)}),0===t.length&&(t=""),t}function doCalculation(e,t){if("undefined"!=typeof __FRMCALC){var i=__FRMCALC,r=i.fields[e];if("undefined"!=typeof r)for(var n=r.total,a=n.length,l=[],d=0,o=a;o>d;d++)fieldIsConditionallyHidden(i.calc[n[d]],t.attr("name"))||doSingleCalculation(i,n[d],l,t)}}function fieldIsConditionallyHidden(e,t){var i=e.field_id,r=e.form_id,n=document.getElementById("frm_hide_fields_"+r).value;if(!n)return!1;n=JSON.parse(n);var a=i;if(isRepeatingFieldByName(t)){var l=t.replace("item_meta","").replace(/\[/g,"").split("]");a=i+"-"+l[0]+"-"+l[1]}if(n.indexOf("frm_field_"+a+"_container")>-1)return!0;var d=getHelpers(r);return d&&null!==d[i]&&n.indexOf("frm_field_"+d[i]+"_container")>-1?!0:!1}function isRepeatingFieldByName(e){var t=!1,i=e.split("[");return i.length>=4&&(t=!0),t}function doSingleCalculation(all_calcs,field_key,vals,triggerField){var thisCalc=all_calcs.calc[field_key],thisFullCalc=thisCalc.calc,totalField=jQuery(document.getElementById("field_"+field_key)),fieldInfo={triggerField:triggerField,inSection:!1,thisFieldCall:'input[id^="field_'+field_key+'-"]'};totalField.length<1&&"undefined"!=typeof triggerField&&(fieldInfo.inSection=!0,fieldInfo.thisFieldId=objectSearch(all_calcs.fieldsWithCalc,field_key),totalField=getSiblingField(fieldInfo)),thisFullCalc=getValsForSingleCalc(thisCalc,thisFullCalc,all_calcs,vals,fieldInfo);var dec=thisCalc.calc_dec;if(thisFullCalc.indexOf(").toFixed(")){var calcParts=thisFullCalc.split(").toFixed(");isNumeric(calcParts[1])&&(dec=calcParts[1],thisFullCalc=thisFullCalc.replace(").toFixed("+dec,""))}var total=parseFloat(eval(thisFullCalc));"undefined"==typeof total&&(total=0),isNumeric(dec)&&(total=total.toFixed(dec)),totalField.val()!=total&&(totalField.val(total),triggerChange(totalField,field_key))}function getValsForSingleCalc(e,t,i,r,n){for(var a=e.fields.length,l=0,d=a;d>l;l++){var o={triggerField:n.triggerField,thisFieldId:e.fields[l],inSection:n.inSection,valKey:n.inSection+""+e.fields[l],thisField:i.fields[e.fields[l]],thisFieldCall:"input"+i.fieldKeys[e.fields[l]]};o=getCallForField(o,i),r=getCalcFieldId(o,i,r),("undefined"==typeof r[o.valKey]||isNaN(r[o.valKey]))&&(r[o.valKey]=0);var f="["+o.thisFieldId+"]";f=f.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),t=t.replace(new RegExp(f,"g"),r[o.valKey])}return t}function getCallForField(e,t){return"checkbox"==e.thisField.type||"select"==e.thisField.type?e.thisFieldCall=e.thisFieldCall+":checked,select"+t.fieldKeys[e.thisFieldId]+" option:selected,"+e.thisFieldCall+"[type=hidden]":"radio"==e.thisField.type||"scale"==e.thisField.type?e.thisFieldCall=e.thisFieldCall+":checked,"+e.thisFieldCall+"[type=hidden]":"textarea"==e.thisField.type&&(e.thisFieldCall=e.thisFieldCall+",textarea"+t.fieldKeys[e.thisFieldId]),e}function maybeDoCalcForSingleField(e){if("undefined"!=typeof __FRMCALC){var t=__FRMCALC,i=getFieldKey(e.id,e.name),r=maybeGetTriggerField(e);if(void 0!==t.calc[i]){var n=[];doSingleCalculation(t,i,n,r)}}}function getFieldKey(e,t){var i=e.replace("field_","");if(isRepeatingFieldByName(t)){for(var r=i.split("-"),n="",a=0;a<r.length-1;a++)n+=r[a];i=n}return i}function maybeGetTriggerField(e){var t=null;return isRepeatingFieldByName(e.name)&&(t=jQuery(e).closest(".frm_form_field")),t}function getCalcFieldId(e,t,i){if("undefined"!=typeof i[e.valKey]&&0!==i[e.valKey])return i;i[e.valKey]=0;var r;return e.inSection===!1?r=jQuery(e.thisFieldCall):(r=getSiblingField(e),(null===r||"undefined"==typeof r)&&(r=jQuery(e.thisFieldCall))),null===r||"undefined"==typeof r||r.length<1?i:(r.each(function(){var r=getOptionValue(e.thisField,this);if("date"==e.thisField.type){var n=getDateFieldValue(t.date,r);null!==n&&(i[e.valKey]=Math.ceil(n/864e5))}else{var a=r;""!==a&&0!==a&&(a=a.trim(),a=parseFloat(a.replace(/,/g,"").match(/-?[\d\.]+$/))),("undefined"==typeof a||isNaN(a)||""===a)&&(a=0),i[e.valKey]+=a}}),i)}function getDateFieldValue(e,t){var i=0;if(t)if("undefined"==typeof jQuery.datepicker){var r="-";e.indexOf("/")>-1&&(r="/");var n,a,l,d=e.split(r),o=t.split(r);n=a=l="";for(var f=0;f<d.length;f++)if("y"==d[f]){var s=(new Date).getFullYear()+15,c=s.toString().substr(2,2);n=o[f]>c?"19"+o[f]:"20"+o[f]}else"yy"==d[f]?n=o[f]:"m"==d[f]||"mm"==d[f]?(a=o[f],a.length<2&&(a="0"+a)):("d"==d[f]||"dd"==d[f])&&(l=o[f],l.length<2&&(l="0"+l));i=Date.parse(n+"-"+a+"-"+l)}else i=jQuery.datepicker.parseDate(e,t);else;return i}function getSiblingField(e){if("undefined"==typeof e.triggerField)return null;var t=e.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");if(t.length){var i=e.thisFieldCall.replace("[id=","[id^=");return t.find(i)}return null}function getOptionValue(e,t){var i;return i=isOtherOption(e,t)?getOtherValueAnyField(e,t):"checkbox"!==t.type&&"radio"!==t.type||!t.checked?jQuery(t).val():t.value,"undefined"==typeof i&&(i=""),i}function isOtherOption(e,t){var i=!1;if("hidden"==t.type)""!==getOtherValueLimited(t)&&(i=!0);else if("select"==e.type){var r=t.className;r&&r.indexOf("frm_other_trigger")>-1&&(i=!0)}else("checkbox"==e.type||"radio"==e.type)&&t.id.indexOf("-other_")>-1&&t.id.indexOf("-otext")<0&&(i=!0);return i}function getOtherValueLimited(e){var t="",i=document.getElementById(e.id+"-otext");return null!==i&&""!==i.value&&(t=i.value),t}function getOtherValueAnyField(e,t){var i=0;return"select"==e.type?"hidden"==t.type?isCurrentOptRepeating(t)||(i=getOtherValueLimited(t)):i=getOtherSelectValue(t):("checkbox"==e.type||"radio"==e.type)&&("hidden"==t.type||(i=getOtherValueLimited(t))),i}function isCurrentOptRepeating(e){var t=!1,i=e.name.split("[");return i.length>2&&(t=!0),t}function getOtherSelectValue(e){return jQuery(e).closest(".frm_other_container").find(".frm_other_input").val()}function validateForm(e,t){var i=[],r=jQuery(t).find(".frm_required_field input, .frm_required_field select, .frm_required_field textarea");if(r.length)for(var n=0,a=r.length;a>n;n++)i=checkRequiredField(r[n],i);var l=jQuery(t).find("input[type=email]");if(l.length)for(var d=0,o=l.length;o>d;d++)i=checkEmailField(l[d],i,l);var f=jQuery(t).find("input[type=number]");if(f.length)for(var s=0,c=f.length;c>s;s++)i=checkNumberField(f[s],i);return i}function validateField(e,t){var i=[],r=jQuery(t).closest(".frm_form_field");if(r.hasClass(".frm_required_field")&&(i=checkRequiredField(t,i)),i.length<1&&"email"==t.type){var n=jQuery(t).closest("form").find("input[type=email]");i=checkEmailField(t,i,n)}if(Object.keys(i).length>0)for(var a in i)addFieldError(r,a,i);else removeFieldError(r)}function checkRequiredField(e,t,i){return""===jQuery(e).val()&&(i=getFieldId(e,!0),t[i]=""),t}function checkEmailField(e,t,i){var r=e.value,n=getFieldId(e,!0),a=0===n.indexOf("conf_");if(""!==r||a){var l=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;if(l.test(r)===!1)t[n]="",a&&(t[n.replace("conf_","")]="");else if(a){var d=e.name.replace("conf_",""),o=i.filter('[name="'+d+'"]').val();o!==r&&(t[n]="",t[n.replace("conf_","")]="")}}return t}function checkNumberField(e,t){var i=e.value;if(isNaN(i/1)!==!1){var r=getFieldId(e,!0);t[r]=""}return t}function checkDateField(e,t){return t}function getFormErrors(e,t){jQuery(e).find('input[type="submit"], input[type="button"]').attr("disabled","disabled"),jQuery(e).find(".frm_ajax_loading").addClass("frm_loading_now"),"undefined"==typeof t&&jQuery(e).find('input[name="frm_action"]').val(),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(e).serialize()+"&action=frm_entries_"+t+"&nonce="+frm_js.nonce,success:function(t){if(t=t.replace(/^\s+|\s+$/g,""),0===t.indexOf("{")&&(t=jQuery.parseJSON(t)),""===t||!t||"0"===t||"object"!=typeof t&&0===t.indexOf("<!DOCTYPE")){var i=document.getElementById("frm_loading");if(null!==i){var r=jQuery(e).find("input[type=file]").val();"undefined"!=typeof r&&""!==r&&setTimeout(function(){jQuery(i).fadeIn("slow")},2e3)}var n=jQuery(e).find(".g-recaptcha");n.length&&(jQuery(e).find(".frm_next_page").length<1||jQuery(e).find(".frm_next_page").val()<1)&&n.closest(".frm_form_field").replaceWith('<input type="hidden" name="recaptcha_checked" value="'+frm_js.nonce+'">'),e.submit()}else if("object"!=typeof t){jQuery(e).find(".frm_ajax_loading").removeClass("frm_loading_now");var a=jQuery(e).find('input[name="form_id"]').val();if(jQuery(e).closest("#frm_form_"+a+"_container").replaceWith(t),frmFrontForm.scrollMsg(a),"function"==typeof frmThemeOverride_frmAfterSubmit){var l=jQuery('input[name="frm_page_order_'+a+'"]').val(),d=jQuery(t).find('input[name="form_id"]').val();frmThemeOverride_frmAfterSubmit(d,l,t,e)}var o=jQuery(e).find('input[name="id"]');o.length&&jQuery(document.getElementById("frm_edit_"+o.val())).find("a").addClass("frm_ajax_edited").click()}else{jQuery(e).find('input[type="submit"], input[type="button"]').removeAttr("disabled"),jQuery(e).find(".frm_ajax_loading").removeClass("frm_loading_now");var f=!0;jQuery(".form-field").removeClass("frm_blank_field"),jQuery(".form-field .frm_error").replaceWith("");var s="",c=!1,u=null;for(var m in t)if(u=jQuery(e).find(jQuery(document.getElementById("frm_field_"+m+"_container"))),u.length){if(!u.is(":visible")){var p=u.closest(".frm_toggle_container");p.length&&p.prev(".frm_trigger").click()}if(u.is(":visible")){f=!1,""===s&&(frmFrontForm.scrollMsg(m,e,!0),s="#frm_field_"+m+"_container");var h=jQuery(e).find("#frm_field_"+m+"_container .g-recaptcha");h.length&&(c=!0,grecaptcha.reset()),addFieldError(u,m,t)}}else if("redirect"==m)return void(window.location=t[m]);c!==!0&&jQuery(e).find(".g-recaptcha").closest(".frm_form_field").replaceWith('<input type="hidden" name="recaptcha_checked" value="'+frm_js.nonce+'">'),f&&e.submit()}},error:function(){jQuery(e).find('input[type="submit"], input[type="button"]').removeAttr("disabled"),e.submit()}})}function addFieldError(e,t,i){e.length&&e.is(":visible")&&(e.addClass("frm_blank_field"),"function"==typeof frmThemeOverride_frmPlaceError?frmThemeOverride_frmPlaceError(t,i):e.append('<div class="frm_error">'+i[t]+"</div>"))}function removeFieldError(e){e.removeClass("frm_blank_field"),e.find(".frm_error").remove()}function clearDefault(){toggleDefault(jQuery(this),"clear")}function replaceDefault(){toggleDefault(jQuery(this),"replace")}function toggleDefault(e,t){var i=e.data("frmval").replace(/(\n|\r\n)/g,"\r");if(""===i||"undefined"==typeof i)return!1;var r=e.val().replace(/(\n|\r\n)/g,"\r");"replace"==t?""===r&&e.addClass("frm_default").val(i):r==i&&e.removeClass("frm_default").val("")}function resendEmail(){var e=jQuery(this),t=e.data("eid"),i=e.data("fid");return e.append('<span class="spinner" style="display:inline"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:t,form_id:i,nonce:frm_js.nonce},success:function(t){e.replaceWith(t)}}),!1}function prepareGraphTypes(e,t){for(var i=0;i<e.length;i++)prepareGraphs(e[i],t)}function prepareGraphs(e,t){google.load("visualization","1.0",{packages:[t],callback:function(){"table"==t?compileGoogleTable(e):compileGraph(e)}})}function compileGoogleTable(e){var t=new google.visualization.DataTable,i=!1;-1!==jQuery.inArray("id",e.options.fields)&&(i=!0,t.addColumn("number",frm_js.id));for(var r=e.fields.length,n="string",a=0,l=r;l>a;a++){var d=e.fields[a];n=getGraphType(d),t.addColumn(n,d.name)}var o=!1;e.options.edit_link&&(o=!0,t.addColumn("string",e.options.edit_link));var f=!1;e.options.delete_link&&(f=!0,t.addColumn("string",e.options.delete_link));var s=0;if(null!==e.entries){var c=e.entries.length;t.addRows(c);for(var u=0,m=0,p=c;p>m;m++){s=0;var h=e.entries[m];i&&(t.setCell(u,s,h.id),s++);for(var _=0,y=r;y>_;_++){var g=e.fields[_];n=getGraphType(g);var v=h.metas[g.id];"number"!=n||null!==v&&""!==v?"boolean"==n&&(v=null===v||"false"==v||v===!1?!1:!0):v=0,t.setCell(u,s,v),s++}o&&("undefined"!=typeof h.editLink?t.setCell(u,s,'<a href="'+h.editLink+'">'+e.options.edit_link+"</a>"):t.setCell(u,s,""),s++),f&&("undefined"!=typeof h.deleteLink?t.setCell(u,s,'<a href="'+h.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+e.options.confirm+'">'+e.options.delete_link+"</a>"):t.setCell(u,s,"")),u++}}else for(t.addRows(1),s=0,a=0,l=r;l>a;a++)s>0?t.setCell(0,s,""):t.setCell(0,s,e.options.no_entries),s++;var F=new google.visualization.Table(document.getElementById("frm_google_table_"+e.options.form_id));F.draw(t,e.graphOpts)}function getGraphType(e){var t="string";if("number"==e.type)t="number";else if("checkbox"==e.type||"select"==e.type){var i=e.options.length;"select"==e.type&&""===e.options[0]&&("post_status"==e.field_options.post_field?i=3:i-=1),1==i&&(t="boolean")}return t}function compileGraph(e){var t=new google.visualization.DataTable,i=!1,r=!1,n=e.rows.length;if(n>0)if("table"==e.type){i=!0;var a=e.rows[n-1],l=a[0]+1;t.addRows(l);for(var d=0,o=n;o>d;d++)t.setCell(e.rows[d])}else{var f=e.rows[0];if("undefined"!=typeof f.tooltip){i=!0,r=!0;for(var s=0,c=n;c>s;s++){var u=e.rows[s].tooltip;delete e.rows[s].tooltip;var m=Object.keys(e.rows[s]).map(function(t){return e.rows[s][t]});e.rows[s]=m,e.rows[s].push(u)}}}var p=e.cols.length;if(i){if(p>0)for(var h=0,_=p;_>h;h++){var y=e.cols[h];t.addColumn(y.type,y.name)}r&&(t.addColumn({type:"string",role:"tooltip"}),t.addRows(e.rows))}else{var g=[];g[0]=[];for(var v=0,F=p;F>v;v++)g[0].push(e.cols[v].name);g=g.concat(e.rows),t=google.visualization.arrayToDataTable(g)}var j=e.type.charAt(0).toUpperCase()+e.type.slice(1)+"Chart",Q=new google.visualization[j](document.getElementById("chart_"+e.graph_id));Q.draw(t,e.options)}function nextUpload(){var e=jQuery(this),t=e.data("fid");e.wrap('<div class="frm_file_names frm_uploaded_files">');for(var i=e.get(0).files,r=0;r<i.length;r++)e.after(0===r?i[r].name+' <a href="#" class="frm_clear_file_link">'+frm_js.remove+"</a>":i[r].name+"<br/>");e.hide();var n="file"+t,a=e.attr("name");if(a!="item_meta["+t+"][]"){var l=a.replace("item_meta[","").replace("[]","").split("][");3==l.length&&(n=n+"-"+l[1])}e.closest(".frm_form_field").find(".frm_uploaded_files:last").after('<input name="'+a+'" data-fid="'+t+'"class="frm_transparent frm_multiple_file" multiple="multiple" type="file" />')}function removeDiv(){fadeOut(jQuery(this).parent(".frm_uploaded_files"))}function clearFile(){return jQuery(this).parent(".frm_file_names").replaceWith(""),!1}function removeRow(){var e="frm_section_"+jQuery(this).data("parent")+"-"+jQuery(this).data("key"),t=jQuery(document.getElementById(e)),i=t.find("input, select, textarea");return t.fadeOut("slow",function(){t.remove(),i.each(function(){if("file"!=this.type){var e=this.name.replace("item_meta[","").split("]")[2].replace("[","");doCalculation(e,jQuery(this))}})}),!1}function addRow(){if(currentlyAddingRow===!0)return!1;currentlyAddingRow=!0;var e=jQuery(this).data("parent"),t=0;return jQuery(".frm_repeat_"+e).length>0&&(t=1+parseInt(jQuery(".frm_repeat_"+e+":last").attr("id").replace("frm_section_"+e+"-","")),"undefined"==typeof t&&(t=1)),jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:e,i:t,nonce:frm_js.nonce},success:function(t){var i=t.html,r=jQuery(i).hide().fadeIn("slow");jQuery(".frm_repeat_"+e+":last").after(r);var n,a,l=["other"],d="reset";addingRow=r.attr("id"),jQuery(i).find("input, select, textarea").each(function(){if("file"!=this.type){if(""==this.name)return!0;n=this.name.replace("item_meta[","").split("]")[2].replace("[",""),-1==jQuery.inArray(n,l)&&(a=jQuery("#"+this.id),l.push(n),checkDependentField(n,null,a,d),doCalculation(n,a),d="persist")}}),addingRow="";for(var o=t.logic.check.length,f=0,s=o;s>f;f++)-1==jQuery.inArray(t.logic.check[f],l)&&jQuery(i).find(".frm_field_"+t.logic.check[f]+"_container").length<1&&(checkDependentField(t.logic.check[f],null,null,d),d="persist");var c=jQuery(i).find(".star");c.length>0&&jQuery(".star").rating();var u=jQuery(i).find(".frm_chzn");u.length>0&&jQuery().chosen&&jQuery(".frm_chzn").chosen({allow_single_deselect:!0}),"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(e,t),currentlyAddingRow=!1},error:function(){currentlyAddingRow=!1}}),!1}function editEntry(){var e=jQuery(this),t=e.data("entryid"),i=e.data("prefix"),r=e.data("pageid"),n=e.data("formid"),a=e.data("cancel"),l=e.data("fields"),d=e.data("excludefields"),o=jQuery(document.getElementById(i+t)),f=o.html();return o.html('<span class="frm-loading-img" id="'+i+t+'"></span><div class="frm_orig_content" style="display:none">'+f+"</div>"),jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:r,entry_id:t,id:n,nonce:frm_js.nonce,fields:l,exclude_fields:d},success:function(t){o.children(".frm-loading-img").replaceWith(t),e.removeClass("frm_inplace_edit").addClass("frm_cancel_edit"),e.html(a)}}),!1}function cancelEdit(){var e=jQuery(this),t=e.data("entryid"),i=e.data("prefix"),r=e.data("edit");if(!e.hasClass("frm_ajax_edited")){var n=jQuery(document.getElementById(i+t));n.children(".frm_forms").replaceWith(""),n.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content")}return e.removeClass("frm_cancel_edit").addClass("frm_inplace_edit"),e.html(r),!1}function deleteEntry(){var e=jQuery(this),t=e.data("deleteconfirm");if(confirm(t)){var i=e.data("entryid"),r=e.data("prefix");e.replaceWith('<span class="frm-loading-img" id="frm_delete_'+i+'"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:i,nonce:frm_js.nonce},success:function(e){"success"==e.replace(/^\s+|\s+$/g,"")?(jQuery(document.getElementById(r+i)).fadeOut("slow"),jQuery(document.getElementById("frm_delete_"+i)).fadeOut("slow")):jQuery(document.getElementById("frm_delete_"+i)).replaceWith(e)
2
+ }})}return!1}function fadeOut(e){e.fadeOut("slow",function(){e.remove()})}function confirmClick(){var e=jQuery(this).data("frmconfirm");return confirm(e)}function toggleDiv(){var e=jQuery(this).data("frmtoggle");return jQuery(e).is(":visible")?jQuery(e).slideUp("fast"):jQuery(e).slideDown("fast"),!1}function empty(e){if(null!==e)for(;e.firstChild;)e.removeChild(e.firstChild)}function objectSearch(e,t){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t)return i;return null}function isNotEmptyArray(e){return jQuery.isArray(e)&&(e.length>1||""!==e[0])}function isNumeric(e){return!jQuery.isArray(e)&&e-parseFloat(e)+1>=0}function getInputsInContainer(e){return e.find('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}function getFieldName(e,t){var i="item_meta["+e+"]";return isRepeatingFieldById(e)&&(i=getRepeatingFieldName(e,t)),i}function getHelpers(e){var t=document.getElementById("frm_helpers_"+e).value;return t=t?JSON.parse(t):[]}function getRepeatingFieldName(e,t){var i="";if(t.indexOf("frm_section")>-1){var r=t.replace("frm_section_","").split("-");i="item_meta["+r[0]+"]["+r[1]+"]["+e+"]"}else{var n=t.replace("frm_field_","").replace("_container","").split("-");i="item_meta["+n[1]+"]["+n[2]+"]["+e+"]"}return i}function getRepeatingFieldHtmlId(e,t){var i=t.replace("frm_section_","").split("-"),r="frm_field_"+e+"-"+i[0]+"-"+i[1]+"_container";return r}function maybeGetFirstElement(e){return e.length>1&&(e=e.eq(0)),e}function isRepeatingFieldById(e){var t=document.getElementById("frm_field_"+e+"_container");if("undefined"!=typeof t&&null!==t)return!1;var i=jQuery('input[name^="item_meta['+e+']"],select[name^="item_meta['+e+']"], textarea[name^="item_meta['+e+']"]');return i.length<1?!0:!1}function addIndexOfFallbackForIE8(){Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,i=Number(arguments[1])||0;for(i=0>i?Math.ceil(i):Math.floor(i),0>i&&(i+=t);t>i;i++)if(i in this&&this[i]===e)return i;return-1})}function addTrimFallbackForIE8(){"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function addFilterFallbackForIE8(){Array.prototype.filter||(Array.prototype.filter=function(e){if(void 0===this||null===this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var r=[],n=arguments[1],a=0;i>a;a++)if(a in t){var l=t[a];e.call(n,l,a,t)&&r.push(l)}return r})}function addKeysFallbackForIE8(){Object.keys||(Object.keys=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t})}function getCheckedVal(e,t){var i=[];if("undefined"==typeof document.querySelector){var r=jQuery("#"+e+' input[type=checkbox]:checked, input[type=hidden][name^="'+t+'"]');r.each(function(){i.push(this.value)})}else for(var n=document.querySelectorAll("#"+e+' input[type=checkbox], input[type=hidden][name^="'+t+'"]'),a=0;a<n.length;a++)("checkbox"==n[a].type&&n[a].checked||"hidden"==n[a].type)&&i.push(n[a].value);return i}var show_fields=[],hide_later=[],hidden_fields=[],frm_checked_dep=[],addingRow="",currentlyAddingRow=!1,action="",jsErrors=[];return{init:function(){jQuery(document).on("click",".frm_trigger",toggleSection);var e=jQuery(".frm_blank_field");e.length&&e.closest(".frm_toggle_container").prev(".frm_trigger").click(),jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()}),jQuery(document).on("focus",".frm_toggle_default",clearDefault),jQuery(document).on("blur",".frm_toggle_default",replaceDefault),jQuery(".frm_toggle_default").blur(),jQuery(document.getElementById("frm_resend_email")).click(resendEmail),jQuery(document).on("change",".frm_multiple_file",nextUpload),jQuery(document).on("click",".frm_clear_file_link",clearFile),jQuery(document).on("click",".frm_remove_link",removeDiv),jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())}),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"]',maybeCheckDependent),jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm-show-form .frm_save_draft',setNextPage),jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',showOtherText),jQuery(document).on("change","input[type=file].frm_transparent",showFileUploadText),jQuery(document).on("click",".frm_remove_form_row",removeRow),jQuery(document).on("click",".frm_add_form_row",addRow),jQuery(document).on("click","a[data-frmconfirm]",confirmClick),jQuery("a[data-frmtoggle]").click(toggleDiv),jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",editEntry),jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",cancelEdit),jQuery(".frm_ajax_delete").click(deleteEntry),jQuery(".frm_month_heading, .frm_year_heading").click(function(){var e=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");e.hasClass("ui-icon-triangle-1-e")?(e.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(e.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())}),addIndexOfFallbackForIE8(),addTrimFallbackForIE8(),addFilterFallbackForIE8(),addKeysFallbackForIE8()},submitForm:function(e){e.preventDefault(),jQuery(this).find(".wp-editor-wrap").length&&"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();var t=this;if(action=jQuery(t).find('input[name="frm_action"]').val(),jsErrors=[],frmFrontForm.getAjaxFormErrors(t),0===Object.keys(jsErrors).length)getFormErrors(t,action);else{jQuery(".form-field").removeClass("frm_blank_field"),jQuery(".form-field .frm_error").replaceWith("");for(var i in jsErrors){var r=jQuery(t).find(jQuery("#frm_field_"+i+"_container"));addFieldError(r,i,jsErrors)}}},getAjaxFormErrors:function(e){"function"==typeof frmThemeOverride_jsErrors&&(jsErrors=frmThemeOverride_jsErrors(action,e))},checkFormErrors:function(e,t){getFormErrors(e,t)},scrollToID:function(e){var t=jQuery(document.getElementById(e).offset());window.scrollTo(t.left,t.top)},scrollMsg:function(e,t,i){var r="";if(r="undefined"==typeof t?jQuery(document.getElementById("frm_form_"+e+"_container")).offset().top:jQuery(t).find(document.getElementById("frm_field_"+e+"_container")).offset().top){r-=frm_js.offset;var n=jQuery("html").css("margin-top"),a=jQuery("body").css("margin-top");if((n||a)&&(r=r-parseInt(n)-parseInt(a)),r&&window.innerHeight){var l=document.documentElement.scrollTop||document.body.scrollTop,d=l+window.innerHeight;if(r>d||l>r)return"undefined"==typeof i?jQuery(window).scrollTop(r):jQuery("html,body").animate({scrollTop:r},500),!1}}},hideCondFields:function(e){e=JSON.parse(e);for(var t=e.length,i=0,r=t;r>i;i++){var n=document.getElementById("frm_field_"+e[i]+"_container");null!==n?n.style.display="none":jQuery(".frm_field_"+e[i]+"_container").hide()}},checkDependent:function(e){e=JSON.parse(e);for(var t=e.length,i="reset",r=0,n=t;n>r;r++)checkDependentField(e[r],null,null,i),i="persist"},loadGoogle:function(){if("undefined"!=typeof google&&google&&google.load)for(var e=__FRMTABLES,t=Object.keys(e),i=0;i<t.length;i++)prepareGraphTypes(e[t[i]],t[i]);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(e,t){var i=jQuery(e).parents("form:first").find('input[name="id"]');jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_fields_ajax_time_options",time_field:t,date_field:e.id,entry_id:i?i.val():"",date:jQuery(e).val(),nonce:frm_js.nonce},success:function(e){var i=jQuery(document.getElementById(t));if(i.find("option").removeAttr("disabled"),e&&""!==e)for(var r in e)i.find('option[value="'+r+'"]').attr("disabled","disabled")}})},escapeHtml:function(e){return e.replace(/&/g,"&").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},invisible:function(e){jQuery(e).css("visibility","hidden")},visible:function(e){jQuery(e).css("visibility","visible")}}}function frmUpdateField(e,t,i,r,n){jQuery(document.getElementById("frm_update_field_"+e+"_"+t)).html('<span class="frm-loading-img"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:e,field_id:t,value:i,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+e+"_"+t+"_"+n)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+e+"_"+t+"_"+n)).replaceWith(r)}})}function frmEditEntry(e,t,i,r,n,a){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var l=jQuery(document.getElementById("frm_edit_"+e)),d=l.html(),o=jQuery(document.getElementById(t+e)),f=o.html();o.html('<span class="frm-loading-img" id="'+t+e+'"></span><div class="frm_orig_content" style="display:none">'+f+"</div>"),jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:i,entry_id:e,id:r,nonce:frm_js.nonce},success:function(f){o.children(".frm-loading-img").replaceWith(f),l.replaceWith('<span id="frm_edit_'+e+'"><a onclick="frmCancelEdit('+e+",'"+t+"','"+frmFrontForm.escapeHtml(d)+"',"+i+","+r+",'"+a+'\')" class="'+a+'">'+n+"</a></span>")}})}function frmCancelEdit(e,t,i,r,n,a){console.warn("DEPRECATED: function frmCancelEdit in v2.0.13 use frmFrontForm.cancelEdit");var l=jQuery(document.getElementById("frm_edit_"+e)),d=l.find("a"),o=d.html();if(!d.hasClass("frm_ajax_edited")){var f=jQuery(document.getElementById(t+e));f.children(".frm_forms").replaceWith(""),f.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content")}l.replaceWith('<a id="frm_edit_'+e+'" class="frm_edit_link '+a+'" href="javascript:frmEditEntry('+e+",'"+t+"',"+r+","+n+",'"+frmFrontForm.escapeHtml(o)+"','"+a+"')\">"+i+"</a>")}function frmDeleteEntry(e,t){console.warn("DEPRECATED: function frmDeleteEntry in v2.0.13 use frmFrontForm.deleteEntry"),jQuery(document.getElementById("frm_delete_"+e)).replaceWith('<span class="frm-loading-img" id="frm_delete_'+e+'"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:e,nonce:frm_js.nonce},success:function(i){"success"==i.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById(t+e)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+e)).replaceWith(i)}})}function frmOnSubmit(e){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm"),frmFrontForm.submitForm(e,this)}function frm_resend_email(e,t){console.warn("DEPRECATED: function frm_resend_email in v2.0"),$link=jQuery(document.getElementById("frm_resend_email")),$link.append('<span class="spinner" style="display:inline"></span>'),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:e,form_id:t,nonce:frm_js.nonce},success:function(e){$link.replaceWith(e)}})}var frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(){frmFrontForm.init()});
languages/formidable-en_US.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.0.08\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2010-12-20\n"
6
- "PO-Revision-Date: 2015-05-23 00:00:58+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -20,8 +20,8 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Textdomain-Support: yes"
22
 
23
- #: classes/controllers/FrmFormsController.php:10
24
- #: classes/controllers/FrmFormsController.php:509
25
  #: classes/controllers/FrmXMLController.php:55
26
  #: classes/views/frm-forms/list.php:5
27
  #@ formidable
@@ -35,199 +35,198 @@ msgstr ""
35
  msgid "Templates"
36
  msgstr ""
37
 
38
- #: classes/controllers/FrmAppController.php:54
39
- #: classes/helpers/FrmFormsListHelper.php:310
40
  #: classes/views/frm-forms/settings.php:3
41
  #: classes/views/shared/form-nav.php:12
42
- #: pro/classes/controllers/FrmProDisplaysController.php:301
43
  #@ formidable
44
  msgid "Settings"
45
  msgstr ""
46
 
47
- #: classes/controllers/FrmFormsController.php:1010
48
- #: classes/controllers/FrmFormsController.php:1015
49
- #: classes/controllers/FrmFormsController.php:1027
50
  #@ formidable
51
  msgid "Please select a valid form"
52
  msgstr ""
53
 
54
- #: classes/controllers/FrmFormsController.php:190
55
- #: classes/controllers/FrmFormsController.php:582
56
  #@ formidable
57
  msgid "Form was Successfully Updated"
58
  msgstr ""
59
 
60
- #: classes/controllers/FrmFormsController.php:205
61
- #: classes/controllers/FrmFormsController.php:232
62
  #@ formidable
63
  msgid "Form template was Successfully Created"
64
  msgstr ""
65
 
66
- #: classes/controllers/FrmFormsController.php:232
67
  #@ formidable
68
  msgid "Form was Successfully Copied"
69
  msgstr ""
70
 
71
- #: classes/controllers/FrmFormsController.php:236
72
  #@ formidable
73
  msgid "There was a problem creating new template."
74
  msgstr ""
75
 
76
- #: classes/controllers/FrmFormsController.php:590
77
- #: classes/controllers/FrmFormsController.php:611
78
  #@ formidable
79
  msgid "That template cannot be edited"
80
  msgstr ""
81
 
82
- #: classes/controllers/FrmSettingsController.php:51
83
- #: classes/controllers/FrmSettingsController.php:54
84
  #@ formidable
85
  msgid "Settings Saved"
86
  msgstr ""
87
 
88
- #: classes/helpers/FrmAppHelper.php:584
89
  #@ formidable
90
  msgid "View Forms and Templates"
91
  msgstr ""
92
 
93
- #: classes/helpers/FrmAppHelper.php:586
94
  #@ formidable
95
  msgid "Delete Forms and Templates"
96
  msgstr ""
97
 
98
- #: classes/helpers/FrmAppHelper.php:587
99
  #@ formidable
100
  msgid "Access this Settings Page"
101
  msgstr ""
102
 
103
- #: classes/helpers/FrmAppHelper.php:588
104
  #@ formidable
105
  msgid "View Entries from Admin Area"
106
  msgstr ""
107
 
108
- #: classes/helpers/FrmAppHelper.php:597
109
  #@ formidable
110
  msgid "Edit Entries from Admin Area"
111
  msgstr ""
112
 
113
- #: classes/helpers/FrmAppHelper.php:589
114
  #@ formidable
115
  msgid "Delete Entries from Admin Area"
116
  msgstr ""
117
 
118
- #: classes/helpers/FrmAppHelper.php:598
119
  #@ formidable
120
  msgid "View Reports"
121
  msgstr ""
122
 
123
- #: classes/views/styles/_sample_form.php:70
124
  #@ formidable
125
  msgid "Section Heading"
126
  msgstr ""
127
 
128
- #: classes/helpers/FrmFieldsHelper.php:30
129
  #@ formidable
130
  msgid "Page Break"
131
  msgstr ""
132
 
133
- #: classes/helpers/FrmFieldsHelper.php:31
134
  #@ formidable
135
  msgid "File Upload"
136
  msgstr ""
137
 
138
- #: classes/helpers/FrmFieldsHelper.php:33
139
  #@ formidable
140
  msgid "Number"
141
  msgstr ""
142
 
143
- #: classes/helpers/FrmFieldsHelper.php:34
144
  #@ formidable
145
  msgid "Phone Number"
146
  msgstr ""
147
 
148
- #: classes/helpers/FrmFieldsHelper.php:15
149
  #@ formidable
150
  msgid "Email Address"
151
  msgstr ""
152
 
153
- #: classes/controllers/FrmFormsController.php:507
154
- #: classes/helpers/FrmFieldsHelper.php:35
155
  #: pro/classes/controllers/FrmProDisplaysController.php:144
156
  #@ formidable
157
  msgid "Date"
158
  msgstr ""
159
 
160
- #: classes/helpers/FrmFieldsHelper.php:36
161
  #@ formidable
162
  msgid "Time"
163
  msgstr ""
164
 
165
- #: classes/helpers/FrmFieldsHelper.php:16
166
  #@ formidable
167
  msgid "Website/URL"
168
  msgstr ""
169
 
170
- #: classes/helpers/FrmFieldsHelper.php:37
171
  #@ formidable
172
  msgid "Image URL"
173
  msgstr ""
174
 
175
- #: classes/helpers/FrmFieldsHelper.php:38
176
  #@ formidable
177
  msgid "Scale"
178
  msgstr ""
179
 
180
- #: classes/helpers/FrmFieldsHelper.php:41
181
  #@ formidable
182
  msgid "Hidden Field"
183
  msgstr ""
184
 
185
- #: classes/helpers/FrmFieldsHelper.php:45
186
  #@ formidable
187
  msgid "Tags"
188
  msgstr ""
189
 
190
- #: classes/helpers/FrmFieldsHelper.php:249
191
  #@ formidable
192
  msgid "Untitled"
193
  msgstr ""
194
 
195
- #: classes/helpers/FrmFormsListHelper.php:308
196
  #@ formidable
197
  msgid "Create Form from Template"
198
  msgstr ""
199
 
200
- #: classes/models/FrmEntry.php:677
201
- #: classes/models/FrmEntry.php:683
202
  #@ formidable
203
  msgid "Your entry appears to be spam!"
204
  msgstr ""
205
 
206
  #: classes/models/FrmNotification.php:94
207
- #: classes/views/frm-entries/sidebar-shared.php:49
208
  #@ formidable
209
  msgid "User Information"
210
  msgstr ""
211
 
212
- #: classes/helpers/FrmEntriesHelper.php:294
213
  #: classes/models/FrmNotification.php:95
214
- #: classes/views/frm-entries/sidebar-shared.php:52
215
- #: pro/classes/controllers/FrmProFormsController.php:66
216
  #: pro/classes/views/frmpro-forms/add_form_options.php:26
217
  #: pro/classes/views/xml/map_csv_fields.php:54
218
  #@ formidable
219
  msgid "IP Address"
220
  msgstr ""
221
 
222
- #: classes/helpers/FrmEntriesHelper.php:296
223
  #: classes/models/FrmNotification.php:96
224
  #@ formidable
225
  msgid "User-Agent (Browser/OS)"
226
  msgstr ""
227
 
228
- #: classes/helpers/FrmEntriesHelper.php:299
229
  #: classes/models/FrmNotification.php:97
230
- #: classes/views/frm-entries/sidebar-shared.php:65
231
  #@ formidable
232
  msgid "Referrer"
233
  msgstr ""
@@ -238,25 +237,25 @@ msgstr ""
238
  msgid "%1$s Form submitted on %2$s"
239
  msgstr ""
240
 
241
- #: classes/models/FrmSettings.php:87
242
  #@ formidable
243
  msgid "Your responses were successfully submitted. Thank you!"
244
  msgstr ""
245
 
246
- #: classes/models/FrmSettings.php:92
247
- #: classes/views/styles/_sample_form.php:98
248
  #: pro/classes/views/frmpro-entries/show.php:34
249
  #@ formidable
250
  msgid "Submit"
251
  msgstr ""
252
 
253
- #: classes/models/FrmSettings.php:93
254
  #@ formidable
255
  msgid "You do not have permission to view this form."
256
  msgstr ""
257
 
258
- #: classes/models/FrmEntry.php:492
259
- #: classes/models/FrmSettings.php:94
260
  #@ formidable
261
  msgid "You do not have permission to do that"
262
  msgstr ""
@@ -266,18 +265,18 @@ msgstr ""
266
  msgid "ERROR"
267
  msgstr ""
268
 
269
- #: pro/classes/models/FrmProDisplay.php:268
270
  #@ formidable
271
  msgid "Name cannot be blank"
272
  msgstr ""
273
 
274
  #: pro/classes/controllers/FrmProFormsController.php:55
275
- #: pro/classes/controllers/FrmProFormsController.php:266
276
  #@ formidable
277
  msgid "Email"
278
  msgstr ""
279
 
280
- #: classes/helpers/FrmFieldsHelper.php:160
281
  #@ formidable
282
  msgid "Website"
283
  msgstr ""
@@ -293,68 +292,69 @@ msgid "Message"
293
  msgstr ""
294
 
295
  #: classes/controllers/FrmEntriesController.php:71
296
- #: classes/controllers/FrmFormsController.php:669
297
- #: classes/views/frm-entries/form.php:31
298
  #: classes/views/frm-entries/sidebar-shared.php:23
299
- #: pro/classes/helpers/FrmProFieldsHelper.php:2647
300
  #: pro/classes/views/displays/where_row.php:7
301
  #: pro/classes/views/xml/map_csv_fields.php:57
302
  #@ formidable
303
  msgid "Entry Key"
304
  msgstr ""
305
 
306
- #: classes/views/frm-forms/add_field.php:155
307
  #@ formidable
308
  msgid "Field Options"
309
  msgstr ""
310
 
311
- #: classes/views/frm-forms/add_field.php:241
312
  #@ formidable
313
  msgid "Field Size"
314
  msgstr ""
315
 
316
- #: classes/views/frm-forms/add_field.php:252
317
  #@ formidable
318
  msgid "rows high"
319
  msgstr ""
320
 
321
- #: classes/views/frm-forms/add_field.php:252
322
  #@ formidable
323
  msgid "characters maximum"
324
  msgstr ""
325
 
326
- #: classes/views/frm-forms/add_field.php:227
327
  #: classes/views/frm-forms/mb_html_tab.php:10
328
  #@ formidable
329
  msgid "Label Position"
330
  msgstr ""
331
 
332
- #: classes/views/frm-forms/add_field.php:230
333
  #@ formidable
334
  msgid "Top"
335
  msgstr ""
336
 
337
- #: classes/views/frm-forms/add_field.php:231
338
  #@ formidable
339
  msgid "Left"
340
  msgstr ""
341
 
342
- #: classes/views/frm-forms/add_field.php:232
 
343
  #@ formidable
344
  msgid "Right"
345
  msgstr ""
346
 
347
- #: classes/views/frm-forms/add_field.php:208
348
  #@ formidable
349
  msgid "Indicate required field with"
350
  msgstr ""
351
 
352
- #: classes/controllers/FrmFormsController.php:499
353
- #: classes/controllers/FrmFormsController.php:503
354
  #: pro/classes/controllers/FrmProDisplaysController.php:145
355
  #: pro/classes/helpers/FrmProCSVExportHelper.php:107
356
- #: pro/classes/helpers/FrmProFieldsHelper.php:2667
357
- #: pro/classes/helpers/FrmProFieldsHelper.php:2682
358
  #: pro/classes/views/displays/mb_advanced.php:95
359
  #@ formidable
360
  msgid "Key"
@@ -365,7 +365,7 @@ msgstr ""
365
  msgid "Copy"
366
  msgstr ""
367
 
368
- #: classes/helpers/FrmEntriesListHelper.php:169
369
  #: classes/views/frm-entries/sidebar-shared.php:11
370
  #: pro/classes/controllers/FrmProDisplaysController.php:36
371
  #: pro/classes/controllers/FrmProDisplaysController.php:37
@@ -376,16 +376,16 @@ msgstr ""
376
  msgid "View"
377
  msgstr ""
378
 
379
- #: classes/views/frm-form-actions/_action_inside.php:37
380
  #: classes/views/frm-forms/_publish_box.php:99
381
  #: classes/views/frm-forms/_publish_box.php:101
382
  #: classes/views/frm-forms/add_field_links.php:6
383
  #: classes/views/frm-forms/edit.php:27
384
  #: classes/views/frm-forms/edit.php:39
385
- #: classes/views/frm-forms/settings.php:245
386
- #: pro/classes/controllers/FrmProEntriesController.php:1996
387
- #: pro/classes/controllers/FrmProEntriesController.php:2550
388
- #: pro/classes/models/FrmProSettings.php:21
389
  #@ formidable
390
  msgid "Update"
391
  msgstr ""
@@ -395,9 +395,9 @@ msgstr ""
395
  msgid "or"
396
  msgstr ""
397
 
398
- #: classes/controllers/FrmAppController.php:275
399
  #: classes/views/frm-forms/_publish_box.php:75
400
- #: pro/classes/controllers/FrmProEntriesController.php:1924
401
  #: pro/classes/controllers/FrmUpdatesController.php:172
402
  #: pro/classes/views/frmpro-entries/sidebar-new.php:14
403
  #: pro/classes/views/frmpro-form-actions/_custom_field_row.php:31
@@ -411,17 +411,17 @@ msgstr ""
411
  msgid "Form Key"
412
  msgstr ""
413
 
414
- #: classes/views/frm-forms/settings.php:143
415
  #@ formidable
416
  msgid "Submit Button Text"
417
  msgstr ""
418
 
419
- #: classes/views/frm-forms/settings.php:202
420
  #@ formidable
421
  msgid "Before Fields"
422
  msgstr ""
423
 
424
- #: classes/views/frm-forms/settings.php:218
425
  #@ formidable
426
  msgid "After Fields"
427
  msgstr ""
@@ -436,6 +436,7 @@ msgstr ""
436
  msgid "Form Description"
437
  msgstr ""
438
 
 
439
  #: classes/views/frm-forms/mb_html_tab.php:7
440
  #@ formidable
441
  msgid "Field Key"
@@ -446,7 +447,7 @@ msgstr ""
446
  msgid "Field Name"
447
  msgstr ""
448
 
449
- #: classes/controllers/FrmStylesController.php:255
450
  #: classes/views/frm-forms/mb_html_tab.php:9
451
  #@ formidable
452
  msgid "Field Description"
@@ -472,20 +473,20 @@ msgstr ""
472
  msgid "Please select a form"
473
  msgstr ""
474
 
475
- #: classes/controllers/FrmFormsController.php:441
476
  #@ formidable
477
  msgid "Display form title"
478
  msgstr ""
479
 
480
- #: classes/controllers/FrmFormsController.php:442
481
  #@ formidable
482
  msgid "Display form description"
483
  msgstr ""
484
 
485
- #: classes/controllers/FrmAppController.php:262
486
  #: pro/classes/helpers/FrmProCSVExportHelper.php:106
487
- #: pro/classes/helpers/FrmProFieldsHelper.php:2666
488
- #: pro/classes/helpers/FrmProFieldsHelper.php:2681
489
  #: pro/classes/views/displays/mb_advanced.php:94
490
  #: pro/classes/views/frmpro-entries/table.php:5
491
  #@ formidable
@@ -494,7 +495,7 @@ msgstr ""
494
 
495
  #: classes/controllers/FrmEntriesController.php:8
496
  #: classes/controllers/FrmEntriesController.php:119
497
- #: classes/controllers/FrmFormsController.php:502
498
  #: classes/views/frm-entries/list.php:3
499
  #: classes/views/shared/form-nav.php:16
500
  #: pro/classes/controllers/FrmProXMLController.php:55
@@ -515,29 +516,29 @@ msgid "No Forms Found"
515
  msgstr ""
516
 
517
  #: classes/controllers/FrmStylesController.php:36
518
- #: classes/helpers/FrmFormsListHelper.php:304
519
  #: classes/views/frm-entries/sidebar-shared.php:10
520
  #: classes/views/frm-forms/_publish_box.php:67
521
  #: pro/classes/controllers/FrmProDisplaysController.php:38
522
- #: pro/classes/controllers/FrmProEntriesController.php:1344
523
- #: pro/classes/controllers/FrmProEntriesController.php:1402
524
- #: pro/classes/controllers/FrmProEntriesController.php:1924
525
- #: pro/classes/helpers/FrmProAppHelper.php:179
526
- #: pro/classes/helpers/FrmProEntriesHelper.php:234
527
- #: pro/classes/helpers/FrmProFieldsHelper.php:2877
528
  #@ default
529
  #@ formidable
530
  msgid "Edit"
531
  msgstr ""
532
 
533
- #: classes/helpers/FrmEntriesListHelper.php:173
534
- #: classes/helpers/FrmFormsHelper.php:588
535
  #: classes/helpers/FrmFormsListHelper.php:104
 
536
  #: classes/views/frm-entries/sidebar-show.php:22
537
- #: classes/views/frm-form-actions/_action_inside.php:38
538
- #: pro/classes/controllers/FrmProEntriesController.php:1409
539
- #: pro/classes/controllers/FrmProEntriesController.php:1704
540
- #: pro/classes/controllers/FrmProEntriesController.php:2049
541
  #: pro/classes/helpers/FrmProEntriesListHelper.php:6
542
  #: pro/classes/views/frmpro-entries/sidebar-edit.php:27
543
  #@ default
@@ -559,15 +560,15 @@ msgstr ""
559
  msgid "Reports"
560
  msgstr ""
561
 
562
- #: classes/helpers/FrmFormsListHelper.php:313
563
  #: pro/classes/controllers/FrmProDisplaysController.php:114
564
- #: pro/classes/controllers/FrmProEntriesController.php:1349
565
- #: pro/classes/helpers/FrmProEntriesHelper.php:223
566
  #@ formidable
567
  msgid "Duplicate"
568
  msgstr ""
569
 
570
- #: classes/views/frm-form-actions/_action_inside.php:36
571
  #: classes/views/frm-forms/add_field_links.php:6
572
  #: classes/views/frm-forms/new.php:28
573
  #: pro/classes/controllers/FrmProFormActionsController.php:32
@@ -575,7 +576,7 @@ msgstr ""
575
  msgid "Create"
576
  msgstr ""
577
 
578
- #: classes/controllers/FrmFieldsController.php:319
579
  #: classes/views/frm-fields/single-option.php:6
580
  #: classes/views/frm-fields/single-option.php:8
581
  #: pro/classes/views/frmpro-fields/other-option.php:10
@@ -644,12 +645,12 @@ msgstr ""
644
  msgid "The message seen when a user who is not logged-in views a form only logged-in users can submit."
645
  msgstr ""
646
 
647
- #: classes/views/frm-forms/settings.php:221
648
  #@ formidable
649
  msgid "Submit Button"
650
  msgstr ""
651
 
652
- #: classes/controllers/FrmAppController.php:268
653
  #@ formidable
654
  msgid "Are you sure you want to do this? Clicking OK will delete all forms, form data, and all other Formidable data. There is no Undo."
655
  msgstr ""
@@ -670,305 +671,305 @@ msgid "Formidable Tag"
670
  msgstr ""
671
 
672
  #: classes/helpers/FrmEntriesListHelper.php:59
673
- #: pro/classes/controllers/FrmProEntriesController.php:1368
674
  #: pro/classes/helpers/FrmProDisplaysHelper.php:60
675
  #@ formidable
676
  msgid "No Entries Found"
677
  msgstr ""
678
 
679
- #: pro/classes/controllers/FrmProEntriesController.php:303
680
  #@ formidable
681
  msgid "Entry was Successfully Created"
682
  msgstr ""
683
 
684
- #: pro/classes/controllers/FrmProEntriesController.php:340
685
  #@ formidable
686
  msgid "Entry was Successfully Updated"
687
  msgstr ""
688
 
689
- #: pro/classes/controllers/FrmProEntriesController.php:343
690
  #@ formidable
691
  msgid "Back to Entries"
692
  msgstr ""
693
 
694
- #: pro/classes/controllers/FrmProEntriesController.php:361
695
  #@ formidable
696
  msgid "Entry was Successfully Duplicated"
697
  msgstr ""
698
 
699
- #: pro/classes/controllers/FrmProEntriesController.php:363
700
  #@ formidable
701
  msgid "There was a problem duplicating that entry"
702
  msgstr ""
703
 
704
- #: classes/controllers/FrmEntriesController.php:365
705
  #@ formidable
706
  msgid "Entry was Successfully Destroyed"
707
  msgstr ""
708
 
709
- #: classes/controllers/FrmEntriesController.php:401
710
- #: pro/classes/controllers/FrmProEntriesController.php:390
711
  #@ formidable
712
  msgid "No entries were specified"
713
  msgstr ""
714
 
715
- #: classes/views/frm-forms/add_field.php:52
716
  #@ formidable
717
  msgid "Duplicate Field"
718
  msgstr ""
719
 
720
- #: classes/helpers/FrmAppHelper.php:1686
721
  #@ formidable
722
  msgid "English/Western"
723
  msgstr ""
724
 
725
- #: classes/helpers/FrmAppHelper.php:1687
726
  #@ formidable
727
  msgid "Afrikaans"
728
  msgstr ""
729
 
730
- #: classes/helpers/FrmAppHelper.php:1687
731
  #@ formidable
732
  msgid "Albanian"
733
  msgstr ""
734
 
735
- #: classes/helpers/FrmAppHelper.php:1688
736
  #@ formidable
737
  msgid "Arabic"
738
  msgstr ""
739
 
740
- #: classes/helpers/FrmAppHelper.php:1688
741
  #@ formidable
742
  msgid "Armenian"
743
  msgstr ""
744
 
745
- #: classes/helpers/FrmAppHelper.php:1689
746
  #@ formidable
747
  msgid "Azerbaijani"
748
  msgstr ""
749
 
750
- #: classes/helpers/FrmAppHelper.php:1689
751
  #@ formidable
752
  msgid "Basque"
753
  msgstr ""
754
 
755
- #: classes/helpers/FrmAppHelper.php:1690
756
  #@ formidable
757
  msgid "Bosnian"
758
  msgstr ""
759
 
760
- #: classes/helpers/FrmAppHelper.php:1690
761
  #@ formidable
762
  msgid "Bulgarian"
763
  msgstr ""
764
 
765
- #: classes/helpers/FrmAppHelper.php:1691
766
  #@ formidable
767
  msgid "Catalan"
768
  msgstr ""
769
 
770
- #: classes/helpers/FrmAppHelper.php:1691
771
  #@ formidable
772
  msgid "Chinese Hong Kong"
773
  msgstr ""
774
 
775
- #: classes/helpers/FrmAppHelper.php:1692
776
  #@ formidable
777
  msgid "Chinese Simplified"
778
  msgstr ""
779
 
780
- #: classes/helpers/FrmAppHelper.php:1692
781
  #@ formidable
782
  msgid "Chinese Traditional"
783
  msgstr ""
784
 
785
- #: classes/helpers/FrmAppHelper.php:1693
786
  #@ formidable
787
  msgid "Croatian"
788
  msgstr ""
789
 
790
- #: classes/helpers/FrmAppHelper.php:1693
791
  #@ formidable
792
  msgid "Czech"
793
  msgstr ""
794
 
795
- #: classes/helpers/FrmAppHelper.php:1694
796
  #@ formidable
797
  msgid "Danish"
798
  msgstr ""
799
 
800
- #: classes/helpers/FrmAppHelper.php:1694
801
  #@ formidable
802
  msgid "Dutch"
803
  msgstr ""
804
 
805
- #: classes/helpers/FrmAppHelper.php:1695
806
  #@ formidable
807
  msgid "English/UK"
808
  msgstr ""
809
 
810
- #: classes/helpers/FrmAppHelper.php:1695
811
  #@ formidable
812
  msgid "Esperanto"
813
  msgstr ""
814
 
815
- #: classes/helpers/FrmAppHelper.php:1696
816
  #@ formidable
817
  msgid "Estonian"
818
  msgstr ""
819
 
820
- #: classes/helpers/FrmAppHelper.php:1696
821
  #@ formidable
822
  msgid "Faroese"
823
  msgstr ""
824
 
825
- #: classes/helpers/FrmAppHelper.php:1697
826
  #@ formidable
827
  msgid "Farsi/Persian"
828
  msgstr ""
829
 
830
- #: classes/helpers/FrmAppHelper.php:1698
831
  #@ formidable
832
  msgid "Finnish"
833
  msgstr ""
834
 
835
- #: classes/helpers/FrmAppHelper.php:1698
836
  #@ formidable
837
  msgid "French"
838
  msgstr ""
839
 
840
- #: classes/helpers/FrmAppHelper.php:1699
841
  #@ formidable
842
  msgid "French/Swiss"
843
  msgstr ""
844
 
845
- #: classes/helpers/FrmAppHelper.php:1700
846
  #@ formidable
847
  msgid "German"
848
  msgstr ""
849
 
850
- #: classes/helpers/FrmAppHelper.php:1701
851
  #@ formidable
852
  msgid "Greek"
853
  msgstr ""
854
 
855
- #: classes/helpers/FrmAppHelper.php:1702
856
  #@ formidable
857
  msgid "Hebrew"
858
  msgstr ""
859
 
860
- #: classes/helpers/FrmAppHelper.php:1703
861
  #@ formidable
862
  msgid "Hungarian"
863
  msgstr ""
864
 
865
- #: classes/helpers/FrmAppHelper.php:1704
866
  #@ formidable
867
  msgid "Icelandic"
868
  msgstr ""
869
 
870
- #: classes/helpers/FrmAppHelper.php:1705
871
  #@ formidable
872
  msgid "Italian"
873
  msgstr ""
874
 
875
- #: classes/helpers/FrmAppHelper.php:1705
876
  #@ formidable
877
  msgid "Japanese"
878
  msgstr ""
879
 
880
- #: classes/helpers/FrmAppHelper.php:1706
881
  #@ formidable
882
  msgid "Korean"
883
  msgstr ""
884
 
885
- #: classes/helpers/FrmAppHelper.php:1706
886
  #@ formidable
887
  msgid "Latvian"
888
  msgstr ""
889
 
890
- #: classes/helpers/FrmAppHelper.php:1707
891
  #@ formidable
892
  msgid "Lithuanian"
893
  msgstr ""
894
 
895
- #: classes/helpers/FrmAppHelper.php:1707
896
  #@ formidable
897
  msgid "Malaysian"
898
  msgstr ""
899
 
900
- #: classes/helpers/FrmAppHelper.php:1708
901
  #@ formidable
902
  msgid "Norwegian"
903
  msgstr ""
904
 
905
- #: classes/helpers/FrmAppHelper.php:1708
906
  #@ formidable
907
  msgid "Polish"
908
  msgstr ""
909
 
910
- #: classes/helpers/FrmAppHelper.php:1709
911
  #@ formidable
912
  msgid "Portuguese/Brazilian"
913
  msgstr ""
914
 
915
- #: classes/helpers/FrmAppHelper.php:1710
916
  #@ formidable
917
  msgid "Romanian"
918
  msgstr ""
919
 
920
- #: classes/helpers/FrmAppHelper.php:1711
921
  #@ formidable
922
  msgid "Russian"
923
  msgstr ""
924
 
925
- #: classes/helpers/FrmAppHelper.php:1711
926
- #: classes/helpers/FrmAppHelper.php:1712
927
  #@ formidable
928
  msgid "Serbian"
929
  msgstr ""
930
 
931
- #: classes/helpers/FrmAppHelper.php:1712
932
  #@ formidable
933
  msgid "Slovak"
934
  msgstr ""
935
 
936
- #: classes/helpers/FrmAppHelper.php:1713
937
  #@ formidable
938
  msgid "Slovenian"
939
  msgstr ""
940
 
941
- #: classes/helpers/FrmAppHelper.php:1713
942
  #@ formidable
943
  msgid "Spanish"
944
  msgstr ""
945
 
946
- #: classes/helpers/FrmAppHelper.php:1714
947
  #@ formidable
948
  msgid "Swedish"
949
  msgstr ""
950
 
951
- #: classes/helpers/FrmAppHelper.php:1715
952
  #@ formidable
953
  msgid "Tamil"
954
  msgstr ""
955
 
956
- #: classes/helpers/FrmAppHelper.php:1715
957
  #@ formidable
958
  msgid "Thai"
959
  msgstr ""
960
 
961
- #: classes/helpers/FrmAppHelper.php:1716
962
  #@ formidable
963
  msgid "Turkish"
964
  msgstr ""
965
 
966
- #: classes/helpers/FrmAppHelper.php:1717
967
  #@ formidable
968
  msgid "Ukranian"
969
  msgstr ""
970
 
971
- #: classes/helpers/FrmAppHelper.php:1717
972
  #@ formidable
973
  msgid "Vietnamese"
974
  msgstr ""
@@ -983,7 +984,7 @@ msgstr ""
983
  msgid "Current Time"
984
  msgstr ""
985
 
986
- #: pro/classes/controllers/FrmProFormsController.php:265
987
  #@ formidable
988
  msgid "User Login"
989
  msgstr ""
@@ -993,20 +994,21 @@ msgstr ""
993
  msgid "User Meta"
994
  msgstr ""
995
 
996
- #: classes/controllers/FrmFormsController.php:670
997
- #: pro/classes/controllers/FrmProFormsController.php:62
998
- #: pro/classes/helpers/FrmProFieldsHelper.php:2648
 
999
  #: pro/classes/views/xml/map_csv_fields.php:49
1000
  #@ formidable
1001
  msgid "Post ID"
1002
  msgstr ""
1003
 
1004
- #: pro/classes/controllers/FrmProStatisticsController.php:1072
1005
  #@ formidable
1006
  msgid "Completed"
1007
  msgstr ""
1008
 
1009
- #: pro/classes/controllers/FrmProStatisticsController.php:1072
1010
  #@ formidable
1011
  msgid "Not Completed"
1012
  msgstr ""
@@ -1019,9 +1021,9 @@ msgstr ""
1019
 
1020
  #: classes/views/frm-entries/list.php:19
1021
  #: classes/views/frm-forms/list.php:22
1022
- #: pro/classes/controllers/FrmProEntriesController.php:1592
1023
  #: pro/classes/controllers/FrmProFormsController.php:365
1024
- #: pro/classes/controllers/FrmProFormsController.php:430
1025
  #: pro/classes/helpers/FrmProEntriesListHelper.php:65
1026
  #@ formidable
1027
  msgid "Search"
@@ -1032,23 +1034,23 @@ msgstr ""
1032
  msgid "Reset"
1033
  msgstr ""
1034
 
1035
- #: pro/classes/helpers/FrmProFieldsHelper.php:1982
1036
  #@ formidable
1037
  msgid "Edit Uploaded File"
1038
  msgstr ""
1039
 
1040
- #: pro/classes/helpers/FrmProFieldsHelper.php:2644
1041
  #: pro/classes/views/frmpro-fields/options-form.php:296
1042
  #@ formidable
1043
  msgid "Select a value to insert into the box below"
1044
  msgstr ""
1045
 
1046
- #: classes/controllers/FrmFormsController.php:668
1047
  #: classes/views/frm-entries/sidebar-shared.php:17
1048
- #: pro/classes/controllers/FrmProFormsController.php:583
1049
  #: pro/classes/helpers/FrmProEntriesListHelper.php:58
1050
  #: pro/classes/helpers/FrmProEntriesListHelper.php:69
1051
- #: pro/classes/helpers/FrmProFieldsHelper.php:2646
1052
  #: pro/classes/views/displays/order_row.php:3
1053
  #: pro/classes/views/displays/where_row.php:6
1054
  #: pro/classes/views/xml/map_csv_fields.php:56
@@ -1056,72 +1058,72 @@ msgstr ""
1056
  msgid "Entry ID"
1057
  msgstr ""
1058
 
1059
- #: pro/classes/helpers/FrmProFieldsHelper.php:2653
1060
  #@ formidable
1061
  msgid "Form Fields"
1062
  msgstr ""
1063
 
1064
- #: pro/classes/helpers/FrmProFieldsHelper.php:2669
1065
  #@ formidable
1066
  msgid "Thumbnail"
1067
  msgstr ""
1068
 
1069
- #: pro/classes/helpers/FrmProFieldsHelper.php:2670
1070
  #@ formidable
1071
  msgid "Medium"
1072
  msgstr ""
1073
 
1074
- #: pro/classes/helpers/FrmProFieldsHelper.php:2671
1075
  #@ formidable
1076
  msgid "Large"
1077
  msgstr ""
1078
 
1079
- #: pro/classes/helpers/FrmProFieldsHelper.php:2672
1080
  #@ formidable
1081
  msgid "Full Size"
1082
  msgstr ""
1083
 
1084
  #: classes/views/shared/mb_adv_info.php:66
1085
- #: pro/classes/helpers/FrmProFieldsHelper.php:2693
1086
  #@ formidable
1087
  msgid "Helpers"
1088
  msgstr ""
1089
 
1090
- #: pro/classes/helpers/FrmProFieldsHelper.php:2694
1091
  #@ formidable
1092
  msgid "Admin link to edit the entry"
1093
  msgstr ""
1094
 
1095
- #: pro/classes/helpers/FrmProFieldsHelper.php:2696
1096
  #@ formidable
1097
  msgid "Link to view single page if showing dynamic entries"
1098
  msgstr ""
1099
 
1100
- #: pro/classes/helpers/FrmProFieldsHelper.php:2700
1101
  #@ formidable
1102
  msgid "Add a rotating 'even' or 'odd' class"
1103
  msgstr ""
1104
 
1105
- #: classes/controllers/FrmFormsController.php:675
1106
- #: pro/classes/helpers/FrmProFieldsHelper.php:2704
1107
  #@ formidable
1108
  msgid "Site URL"
1109
  msgstr ""
1110
 
1111
- #: pro/classes/models/FrmProDisplay.php:284
1112
  #@ formidable
1113
  msgid "Limit must be a number"
1114
  msgstr ""
1115
 
1116
- #: classes/helpers/FrmFieldsHelper.php:279
1117
  #@ formidable
1118
  msgid "must be unique"
1119
  msgstr ""
1120
 
1121
  #: pro/classes/controllers/FrmProFormsController.php:60
1122
- #: pro/classes/controllers/FrmProFormsController.php:261
1123
  #: pro/classes/models/FrmProField.php:34
1124
- #: pro/classes/models/FrmProForm.php:218
1125
  #@ formidable
1126
  msgid "User ID"
1127
  msgstr ""
@@ -1131,17 +1133,17 @@ msgstr ""
1131
  msgid "Page"
1132
  msgstr ""
1133
 
1134
- #: pro/classes/models/FrmProForm.php:225
1135
  #@ formidable
1136
  msgid "Please insert a message for your auto responder."
1137
  msgstr ""
1138
 
1139
- #: pro/classes/models/FrmProForm.php:228
1140
  #@ formidable
1141
  msgid "That is not a valid reply-to email address for your auto responder."
1142
  msgstr ""
1143
 
1144
- #: pro/classes/models/FrmProSettings.php:22
1145
  #@ formidable
1146
  msgid "You have already submitted that form"
1147
  msgstr ""
@@ -1154,7 +1156,7 @@ msgstr ""
1154
  #: classes/controllers/FrmEntriesController.php:111
1155
  #: pro/classes/helpers/FrmProEntriesListHelper.php:57
1156
  #: pro/classes/helpers/FrmProEntriesListHelper.php:68
1157
- #: pro/classes/helpers/FrmProFieldsHelper.php:2650
1158
  #: pro/classes/views/displays/_calendar_options.php:4
1159
  #: pro/classes/views/displays/_calendar_options.php:16
1160
  #: pro/classes/views/displays/order_row.php:4
@@ -1223,7 +1225,7 @@ msgstr ""
1223
  msgid "If you would like the content to be inserted automatically, you must then select the page in which to insert it."
1224
  msgstr ""
1225
 
1226
- #: classes/controllers/FrmFormsController.php:688
1227
  #@ formidable
1228
  msgid "Detail Link"
1229
  msgstr ""
@@ -1244,13 +1246,13 @@ msgstr ""
1244
  msgid "Random"
1245
  msgstr ""
1246
 
1247
- #: pro/classes/controllers/FrmProFormsController.php:419
1248
  #: pro/classes/views/displays/order_row.php:14
1249
  #@ formidable
1250
  msgid "Ascending"
1251
  msgstr ""
1252
 
1253
- #: pro/classes/controllers/FrmProFormsController.php:420
1254
  #: pro/classes/views/displays/order_row.php:15
1255
  #@ formidable
1256
  msgid "Descending"
@@ -1266,7 +1268,7 @@ msgstr ""
1266
  msgid "The number of entries to show per page. Leave blank to not use pagination."
1267
  msgstr ""
1268
 
1269
- #: classes/controllers/FrmFormsController.php:415
1270
  #: classes/views/frm-forms/_publish_box.php:47
1271
  #: classes/widgets/FrmShowForm.php:46
1272
  #: pro/classes/controllers/FrmProDisplaysController.php:139
@@ -1279,17 +1281,17 @@ msgstr ""
1279
  msgid "Field ID"
1280
  msgstr ""
1281
 
1282
- #: pro/classes/controllers/FrmProFormsController.php:244
1283
  #@ formidable
1284
  msgid "Replaces spaces with dashes and lowercases all. Use if adding an HTML class or ID"
1285
  msgstr ""
1286
 
1287
- #: pro/classes/controllers/FrmProFormsController.php:245
1288
  #@ formidable
1289
  msgid "Replaces all HTML entities with a URL safe string."
1290
  msgstr ""
1291
 
1292
- #: pro/classes/controllers/FrmProFormsController.php:246
1293
  #@ formidable
1294
  msgid "Truncate text with a link to view more. If using Both (dynamic), the link goes to the detail page. Otherwise, it will show in-place."
1295
  msgstr ""
@@ -1299,44 +1301,44 @@ msgstr ""
1299
  msgid "Date options: 'NOW' or a date in yyyy-mm-dd format."
1300
  msgstr ""
1301
 
1302
- #: pro/classes/views/displays/where_row.php:14
1303
  #: pro/classes/views/frmpro-fields/_logic_row.php:25
1304
- #: pro/classes/views/frmpro-forms/_logic_row.php:21
1305
  #@ formidable
1306
  msgid "is"
1307
  msgstr ""
1308
 
1309
- #: pro/classes/views/displays/where_row.php:16
1310
  #: pro/classes/views/frmpro-fields/_logic_row.php:29
1311
- #: pro/classes/views/frmpro-forms/_logic_row.php:24
1312
  #@ formidable
1313
  msgid "equal to"
1314
  msgstr ""
1315
 
1316
- #: pro/classes/views/displays/where_row.php:17
1317
  #: pro/classes/views/frmpro-fields/_logic_row.php:30
1318
- #: pro/classes/views/frmpro-forms/_logic_row.php:25
1319
  #@ formidable
1320
  msgid "NOT equal to"
1321
  msgstr ""
1322
 
1323
- #: pro/classes/views/displays/where_row.php:18
1324
  #: pro/classes/views/frmpro-fields/_logic_row.php:31
1325
- #: pro/classes/views/frmpro-forms/_logic_row.php:26
1326
  #@ formidable
1327
  msgid "greater than"
1328
  msgstr ""
1329
 
1330
- #: pro/classes/views/displays/where_row.php:19
1331
  #: pro/classes/views/frmpro-fields/_logic_row.php:32
1332
- #: pro/classes/views/frmpro-forms/_logic_row.php:27
1333
  #@ formidable
1334
  msgid "less than"
1335
  msgstr ""
1336
 
1337
- #: pro/classes/views/displays/where_row.php:22
1338
  #: pro/classes/views/frmpro-fields/_logic_row.php:33
1339
- #: pro/classes/views/frmpro-forms/_logic_row.php:28
1340
  #@ formidable
1341
  msgid "like"
1342
  msgstr ""
@@ -1347,10 +1349,10 @@ msgid "Edit Entry"
1347
  msgstr ""
1348
 
1349
  #: classes/views/frm-entries/sidebar-show.php:22
1350
- #: pro/classes/controllers/FrmProEntriesController.php:1369
1351
- #: pro/classes/controllers/FrmProEntriesController.php:1632
1352
- #: pro/classes/controllers/FrmProEntriesController.php:1721
1353
- #: pro/classes/controllers/FrmProEntriesController.php:2050
1354
  #@ formidable
1355
  msgid "Are you sure you want to delete that entry?"
1356
  msgstr ""
@@ -1400,7 +1402,7 @@ msgstr ""
1400
  msgid "minute step"
1401
  msgstr ""
1402
 
1403
- #: classes/views/frm-forms/add_field.php:246
1404
  #@ formidable
1405
  msgid "automatic width"
1406
  msgstr ""
@@ -1450,22 +1452,22 @@ msgstr ""
1450
  msgid "to"
1451
  msgstr ""
1452
 
1453
- #: classes/views/frm-forms/add_field.php:160
1454
  #@ formidable
1455
  msgid "Field Type"
1456
  msgstr ""
1457
 
1458
- #: classes/views/frm-forms/add_field.php:162
1459
  #@ formidable
1460
  msgid "The field key can be used as an alternative to the field ID in many cases."
1461
  msgstr ""
1462
 
1463
- #: pro/classes/views/frmpro-fields/show.php:29
1464
  #@ formidable
1465
  msgid "These buttons are for illustrative purposes only. They will be functional in your form."
1466
  msgstr ""
1467
 
1468
- #: classes/views/frm-forms/settings.php:77
1469
  #: pro/classes/views/frmpro-forms/add_form_options.php:88
1470
  #@ formidable
1471
  msgid "Use Content from Page"
@@ -1481,7 +1483,7 @@ msgstr ""
1481
  msgid "Saved Cookie"
1482
  msgstr ""
1483
 
1484
- #: pro/classes/controllers/FrmProFormsController.php:68
1485
  #@ formidable
1486
  msgid "A variable from the URL or value posted from previous page."
1487
  msgstr ""
@@ -1513,38 +1515,37 @@ msgstr ""
1513
 
1514
  #: classes/views/shared/mb_adv_info.php:14
1515
  #: classes/views/shared/mb_adv_info.php:95
1516
- #: pro/classes/views/settings/form.php:34
1517
  #@ formidable
1518
  msgid "Keys"
1519
  msgstr ""
1520
 
1521
- #: classes/controllers/FrmFormsController.php:649
1522
- #: pro/classes/views/settings/form.php:48
1523
  #@ formidable
1524
  msgid "Date Format"
1525
  msgstr ""
1526
 
1527
- #: pro/classes/views/settings/form.php:75
1528
  #@ formidable
1529
  msgid "Pretty Permalinks"
1530
  msgstr ""
1531
 
1532
- #: pro/classes/views/settings/form.php:78
1533
  #@ formidable
1534
  msgid "Use pretty permalinks for entry detail links"
1535
  msgstr ""
1536
 
1537
- #: classes/views/styles/_buttons.php:60
1538
- #: classes/views/styles/_buttons.php:106
1539
- #: classes/views/styles/_buttons.php:127
1540
  #: classes/views/styles/_field-colors.php:30
1541
  #: classes/views/styles/_field-colors.php:57
1542
  #: classes/views/styles/_field-colors.php:76
1543
  #: classes/views/styles/_field-colors.php:109
1544
  #: classes/views/styles/_form-messages.php:20
1545
  #: classes/views/styles/_form-messages.php:43
1546
- #: classes/views/styles/_general.php:21
1547
- #: classes/views/styles/_section-fields.php:55
1548
  #@ formidable
1549
  msgid "Border"
1550
  msgstr ""
@@ -1552,20 +1553,20 @@ msgstr ""
1552
  #: classes/views/styles/_check-box-radio-fields.php:18
1553
  #: classes/views/styles/_field-description.php:2
1554
  #: classes/views/styles/_field-labels.php:2
1555
- #: classes/views/styles/_field-labels.php:47
1556
- #: classes/views/styles/_general.php:26
1557
- #: classes/views/styles/_general.php:55
1558
- #: classes/views/styles/_general.php:65
1559
  #: classes/views/styles/_section-fields.php:18
1560
  #@ formidable
1561
  msgid "Color"
1562
  msgstr ""
1563
 
1564
- #: classes/views/styles/_buttons.php:86
1565
- #: classes/views/styles/_field-labels.php:40
1566
  #: classes/views/styles/_field-sizes.php:23
1567
- #: classes/views/styles/_general.php:31
1568
- #: classes/views/styles/_section-fields.php:36
1569
  #@ formidable
1570
  msgid "Padding"
1571
  msgstr ""
@@ -1574,44 +1575,44 @@ msgstr ""
1574
  #: classes/controllers/FrmStylesController.php:35
1575
  #: classes/views/styles/_field-colors.php:38
1576
  #: classes/views/styles/_field-colors.php:84
1577
- #: classes/views/styles/_field-description.php:13
1578
- #: classes/views/styles/_section-fields.php:63
1579
  #@ formidable
1580
  msgid "Style"
1581
  msgstr ""
1582
 
1583
  #: classes/views/styles/_field-colors.php:40
1584
  #: classes/views/styles/_field-colors.php:86
1585
- #: classes/views/styles/_section-fields.php:65
1586
  #@ formidable
1587
  msgid "solid"
1588
  msgstr ""
1589
 
1590
  #: classes/views/styles/_field-colors.php:41
1591
  #: classes/views/styles/_field-colors.php:87
1592
- #: classes/views/styles/_section-fields.php:66
1593
  #@ formidable
1594
  msgid "dotted"
1595
  msgstr ""
1596
 
1597
  #: classes/views/styles/_field-colors.php:42
1598
  #: classes/views/styles/_field-colors.php:88
1599
- #: classes/views/styles/_section-fields.php:67
1600
  #@ formidable
1601
  msgid "dashed"
1602
  msgstr ""
1603
 
1604
  #: classes/views/styles/_field-colors.php:43
1605
  #: classes/views/styles/_field-colors.php:89
1606
- #: classes/views/styles/_section-fields.php:68
1607
  #@ formidable
1608
  msgid "double"
1609
  msgstr ""
1610
 
1611
- #: classes/views/styles/_buttons.php:65
1612
  #: classes/views/styles/_field-colors.php:34
1613
  #: classes/views/styles/_field-colors.php:80
1614
- #: classes/views/styles/_section-fields.php:59
1615
  #@ formidable
1616
  msgid "Thickness"
1617
  msgstr ""
@@ -1697,38 +1698,38 @@ msgstr ""
1697
  msgid "Export"
1698
  msgstr ""
1699
 
1700
- #: classes/controllers/FrmStylesController.php:253
1701
  #: classes/views/frm-forms/settings.php:32
1702
  #: classes/views/frm-settings/form.php:18
1703
  #@ formidable
1704
  msgid "General"
1705
  msgstr ""
1706
 
1707
- #: classes/views/styles/_field-description.php:25
1708
- #: classes/views/styles/_field-labels.php:27
1709
  #@ formidable
1710
  msgid "Align"
1711
  msgstr ""
1712
 
1713
- #: classes/views/styles/_field-description.php:27
1714
- #: classes/views/styles/_field-labels.php:20
1715
- #: classes/views/styles/_field-labels.php:29
1716
- #: classes/views/styles/_general.php:4
1717
- #: classes/views/styles/_section-fields.php:77
1718
  #@ formidable
1719
  msgid "left"
1720
  msgstr ""
1721
 
1722
- #: classes/views/styles/_field-description.php:28
1723
- #: classes/views/styles/_field-labels.php:20
1724
- #: classes/views/styles/_field-labels.php:30
1725
- #: classes/views/styles/_general.php:5
1726
- #: classes/views/styles/_section-fields.php:78
1727
  #@ formidable
1728
  msgid "right"
1729
  msgstr ""
1730
 
1731
- #: classes/views/styles/_general.php:6
1732
  #@ formidable
1733
  msgid "center"
1734
  msgstr ""
@@ -1737,62 +1738,54 @@ msgstr ""
1737
  #: classes/views/styles/_check-box-radio-fields.php:22
1738
  #: classes/views/styles/_field-description.php:6
1739
  #: classes/views/styles/_field-labels.php:6
1740
- #: classes/views/styles/_field-labels.php:51
1741
  #: classes/views/styles/_section-fields.php:23
1742
  #@ formidable
1743
  msgid "Weight"
1744
  msgstr ""
1745
 
1746
  #: classes/views/styles/_buttons.php:22
1747
- #: classes/views/styles/_check-box-radio-fields.php:29
1748
- #: classes/views/styles/_field-description.php:20
1749
- #: classes/views/styles/_field-labels.php:13
1750
  #: classes/views/styles/_field-sizes.php:2
1751
  #: classes/views/styles/_form-messages.php:28
1752
  #: classes/views/styles/_form-messages.php:53
1753
- #: classes/views/styles/_section-fields.php:31
1754
  #@ formidable
1755
  msgid "Size"
1756
  msgstr ""
1757
 
1758
- #: classes/views/styles/_field-labels.php:18
1759
  #@ formidable
1760
  msgid "Position"
1761
  msgstr ""
1762
 
1763
  #: classes/views/styles/_buttons.php:27
1764
- #: classes/views/styles/_field-labels.php:35
1765
  #: classes/views/styles/_field-sizes.php:12
1766
- #: pro/classes/controllers/FrmProFormsController.php:484
1767
  #@ formidable
1768
  msgid "Width"
1769
  msgstr ""
1770
 
1771
- #: classes/views/styles/_buttons.php:39
1772
- #: classes/views/styles/_check-box-radio-fields.php:24
1773
- #: classes/views/styles/_field-description.php:8
1774
- #: classes/views/styles/_field-description.php:15
1775
- #: classes/views/styles/_field-labels.php:53
1776
- #: classes/views/styles/_section-fields.php:25
1777
  #@ formidable
1778
  msgid "normal"
1779
  msgstr ""
1780
 
1781
- #: classes/views/styles/_buttons.php:40
1782
- #: classes/views/styles/_check-box-radio-fields.php:25
1783
- #: classes/views/styles/_field-description.php:9
1784
- #: classes/views/styles/_field-labels.php:54
1785
- #: classes/views/styles/_section-fields.php:26
1786
  #@ formidable
1787
  msgid "bold"
1788
  msgstr ""
1789
 
1790
- #: classes/views/styles/_field-description.php:16
1791
  #@ formidable
1792
  msgid "italic"
1793
  msgstr ""
1794
 
1795
- #: classes/views/styles/_buttons.php:45
1796
  #: classes/views/styles/_field-sizes.php:33
1797
  #@ formidable
1798
  msgid "Corners"
@@ -1803,12 +1796,12 @@ msgstr ""
1803
  msgid "Formidable uses CSS3 border-radius for corner rounding, which is not currently supported by Internet Explorer."
1804
  msgstr ""
1805
 
1806
- #: classes/controllers/FrmStylesController.php:257
1807
  #@ formidable
1808
  msgid "Field Settings"
1809
  msgstr ""
1810
 
1811
- #: classes/controllers/FrmStylesController.php:256
1812
  #@ formidable
1813
  msgid "Field Colors"
1814
  msgstr ""
@@ -1817,14 +1810,14 @@ msgstr ""
1817
  #: classes/views/styles/_field-colors.php:53
1818
  #: classes/views/styles/_field-colors.php:67
1819
  #: classes/views/styles/_field-colors.php:100
1820
- #: classes/views/styles/_section-fields.php:41
1821
  #@ formidable
1822
  msgid "BG color"
1823
  msgstr ""
1824
 
1825
- #: classes/views/styles/_buttons.php:55
1826
- #: classes/views/styles/_buttons.php:101
1827
- #: classes/views/styles/_buttons.php:122
1828
  #: classes/views/styles/_field-colors.php:25
1829
  #: classes/views/styles/_field-colors.php:71
1830
  #: classes/views/styles/_field-colors.php:104
@@ -1851,38 +1844,40 @@ msgstr ""
1851
 
1852
  #: classes/views/styles/_buttons.php:32
1853
  #: classes/views/styles/_field-sizes.php:7
1854
- #: pro/classes/controllers/FrmProFormsController.php:483
1855
  #@ formidable
1856
  msgid "Height"
1857
  msgstr ""
1858
 
1859
- #: classes/views/styles/_buttons.php:50
1860
- #: classes/views/styles/_buttons.php:96
1861
- #: classes/views/styles/_buttons.php:117
1862
  #: classes/views/styles/_form-messages.php:15
1863
  #: classes/views/styles/_form-messages.php:38
1864
  #@ formidable
1865
  msgid "BG Color"
1866
  msgstr ""
1867
 
1868
- #: classes/views/styles/_buttons.php:76
1869
  #@ formidable
1870
  msgid "BG Image"
1871
  msgstr ""
1872
 
1873
- #: classes/views/styles/_buttons.php:70
1874
  #@ formidable
1875
  msgid "Shadow"
1876
  msgstr ""
1877
 
1878
- #: classes/views/styles/_buttons.php:81
1879
  #: classes/views/styles/_field-sizes.php:28
1880
  #@ formidable
1881
  msgid "Margin"
1882
  msgstr ""
1883
 
 
1884
  #: classes/views/styles/_field-colors.php:10
1885
  #: classes/views/styles/_form-messages.php:7
 
1886
  #@ formidable
1887
  msgid "Error"
1888
  msgstr ""
@@ -1892,25 +1887,25 @@ msgstr ""
1892
  msgid "Success"
1893
  msgstr ""
1894
 
1895
- #: pro/classes/controllers/FrmProFormsController.php:63
1896
  #: pro/classes/views/frmpro-form-actions/post_options.php:45
1897
  #@ formidable
1898
  msgid "Post Title"
1899
  msgstr ""
1900
 
1901
- #: classes/views/frm-forms/add_field.php:190
1902
- #: classes/views/frm-forms/add_field.php:283
1903
  #@ formidable
1904
  msgid "Unique"
1905
  msgstr ""
1906
 
1907
- #: classes/views/frm-forms/add_field.php:199
1908
  #: classes/views/styles/_field-colors.php:13
1909
  #@ formidable
1910
  msgid "Read Only"
1911
  msgstr ""
1912
 
1913
- #: classes/helpers/FrmFieldsHelper.php:17
1914
  #: classes/views/frm-settings/form.php:64
1915
  #@ formidable
1916
  msgid "reCAPTCHA"
@@ -1931,17 +1926,17 @@ msgstr ""
1931
  msgid "reCAPTCHA Language"
1932
  msgstr ""
1933
 
1934
- #: classes/helpers/FrmAppHelper.php:1686
1935
  #@ formidable
1936
  msgid "English"
1937
  msgstr ""
1938
 
1939
- #: classes/helpers/FrmAppHelper.php:1709
1940
  #@ formidable
1941
  msgid "Portuguese"
1942
  msgstr ""
1943
 
1944
- #: classes/models/FrmSettings.php:155
1945
  #@ formidable
1946
  msgid "The reCAPTCHA was not entered correctly"
1947
  msgstr ""
@@ -1951,23 +1946,23 @@ msgstr ""
1951
  msgid "Delete Entry Link"
1952
  msgstr ""
1953
 
1954
- #: classes/helpers/FrmFieldsHelper.php:32
1955
  #@ formidable
1956
  msgid "Rich Text"
1957
  msgstr ""
1958
 
1959
- #: classes/helpers/FrmFieldsHelper.php:44
1960
  #@ formidable
1961
  msgid "HTML"
1962
  msgstr ""
1963
 
1964
- #: classes/views/frm-forms/add_field.php:181
1965
- #: classes/views/frm-forms/add_field.php:268
1966
  #@ formidable
1967
  msgid "Required"
1968
  msgstr ""
1969
 
1970
- #: classes/controllers/FrmFormsController.php:504
1971
  #: classes/views/frm-forms/_publish_box.php:47
1972
  #: pro/classes/views/displays/submitbox_actions.php:2
1973
  #@ formidable
@@ -1979,38 +1974,38 @@ msgstr ""
1979
  msgid "Default Submit Button"
1980
  msgstr ""
1981
 
1982
- #: pro/classes/models/FrmProDisplay.php:271
1983
  #: pro/classes/views/displays/mb_excerpt.php:2
1984
  #@ formidable
1985
  msgid "This is not displayed anywhere, but is just for your reference. (optional)"
1986
  msgstr ""
1987
 
1988
- #: pro/classes/models/FrmProDisplay.php:276
1989
  #@ formidable
1990
  msgid "Content cannot be blank"
1991
  msgstr ""
1992
 
1993
- #: pro/classes/models/FrmProDisplay.php:280
1994
  #@ formidable
1995
  msgid "Page cannot be blank if you want the content inserted automatically"
1996
  msgstr ""
1997
 
1998
- #: pro/classes/models/FrmProDisplay.php:289
1999
  #@ formidable
2000
  msgid "Dynamic Content cannot be blank"
2001
  msgstr ""
2002
 
2003
- #: pro/classes/models/FrmProDisplay.php:294
2004
  #@ formidable
2005
  msgid "Parameter Name cannot be blank if content is dynamic"
2006
  msgstr ""
2007
 
2008
- #: pro/classes/models/FrmProDisplay.php:298
2009
  #@ formidable
2010
  msgid "Parameter Value cannot be blank if content is dynamic"
2011
  msgstr ""
2012
 
2013
- #: pro/classes/models/FrmProDisplay.php:302
2014
  #@ formidable
2015
  msgid "Detail Link cannot be blank if content is dynamic"
2016
  msgstr ""
@@ -2074,7 +2069,7 @@ msgstr ""
2074
  msgid "Order"
2075
  msgstr ""
2076
 
2077
- #: pro/classes/controllers/FrmProFormsController.php:413
2078
  #: pro/classes/views/displays/mb_advanced.php:6
2079
  #@ formidable
2080
  msgid "Limit"
@@ -2095,12 +2090,12 @@ msgstr ""
2095
  msgid "Calculate the default value for this field"
2096
  msgstr ""
2097
 
2098
- #: pro/classes/views/frmpro-fields/show.php:34
2099
  #@ formidable
2100
  msgid "This is a placeholder for your custom HTML."
2101
  msgstr ""
2102
 
2103
- #: pro/classes/views/frmpro-fields/show.php:34
2104
  #@ formidable
2105
  msgid "You can edit this content in the field options."
2106
  msgstr ""
@@ -2115,7 +2110,7 @@ msgstr ""
2115
  msgid "Response Count"
2116
  msgstr ""
2117
 
2118
- #: classes/views/frm-forms/add_field_links.php:115
2119
  #: pro/classes/views/frmpro-statistics/show.php:34
2120
  #@ formidable
2121
  msgid "Total"
@@ -2141,75 +2136,76 @@ msgstr ""
2141
  msgid "View Profile"
2142
  msgstr ""
2143
 
2144
- #: classes/views/styles/_sample_form.php:16
2145
  #@ formidable
2146
  msgid "Text field"
2147
  msgstr ""
2148
 
2149
- #: classes/views/styles/_sample_form.php:17
2150
- #: classes/views/styles/_sample_form.php:23
2151
  #@ formidable
2152
  msgid "This is sample text"
2153
  msgstr ""
2154
 
2155
- #: classes/views/styles/_sample_form.php:18
2156
  #@ formidable
2157
  msgid "A field with a description"
2158
  msgstr ""
2159
 
2160
- #: classes/views/styles/_sample_form.php:22
2161
  #@ formidable
2162
  msgid "Text field with error"
2163
  msgstr ""
2164
 
2165
- #: classes/views/styles/_sample_form.php:28
2166
  #@ formidable
2167
  msgid "Text field in active state"
2168
  msgstr ""
2169
 
2170
- #: classes/views/styles/_sample_form.php:43
2171
  #@ formidable
2172
  msgid "Drop-down Select"
2173
  msgstr ""
2174
 
2175
- #: classes/helpers/FrmFieldsHelper.php:13
2176
- #: classes/views/styles/_sample_form.php:52
2177
- #: pro/classes/helpers/FrmProFieldsHelper.php:3895
2178
  #@ formidable
2179
  msgid "Radio Buttons"
2180
  msgstr ""
2181
 
2182
- #: classes/helpers/FrmFieldsHelper.php:147
2183
- #: classes/helpers/FrmFieldsHelper.php:152
2184
- #: classes/views/styles/_sample_form.php:47
2185
- #: classes/views/styles/_sample_form.php:54
2186
- #: classes/views/styles/_sample_form.php:62
2187
  #@ formidable
2188
  msgid "Option 1"
2189
  msgstr ""
2190
 
2191
- #: classes/helpers/FrmFieldsHelper.php:148
2192
- #: classes/views/styles/_sample_form.php:55
2193
- #: classes/views/styles/_sample_form.php:63
2194
  #@ formidable
2195
  msgid "Option 2"
2196
  msgstr ""
2197
 
2198
- #: classes/views/styles/_sample_form.php:60
2199
  #@ formidable
2200
  msgid "Check Boxes"
2201
  msgstr ""
2202
 
2203
- #: classes/views/styles/_sample_form.php:84
2204
  #@ formidable
2205
  msgid "Text Area"
2206
  msgstr ""
2207
 
2208
- #: classes/views/styles/_sample_form.php:86
2209
  #@ formidable
2210
  msgid "Another field with a description"
2211
  msgstr ""
2212
 
 
2213
  #: classes/views/xml/import_form.php:11
2214
  #: pro/classes/views/xml/map_csv_fields.php:64
2215
  #@ formidable
@@ -2236,12 +2232,12 @@ msgstr ""
2236
  msgid "Don't use Formidable styling on any page"
2237
  msgstr ""
2238
 
2239
- #: classes/models/FrmSettings.php:91
2240
  #@ formidable
2241
  msgid "We're sorry. It looks like you've already submitted that."
2242
  msgstr ""
2243
 
2244
- #: classes/views/frm-forms/add_field.php:234
2245
  #: classes/views/styles/_date-fields.php:31
2246
  #: pro/classes/views/frmpro-fields/options-form.php:278
2247
  #: pro/classes/views/frmpro-form-actions/post_options.php:103
@@ -2250,7 +2246,7 @@ msgstr ""
2250
  msgid "None"
2251
  msgstr ""
2252
 
2253
- #: pro/classes/helpers/FrmProFieldsHelper.php:974
2254
  #@ formidable
2255
  msgid "No Categories"
2256
  msgstr ""
@@ -2275,20 +2271,20 @@ msgstr ""
2275
  msgid "Post Type"
2276
  msgstr ""
2277
 
2278
- #: classes/helpers/FrmFieldsHelper.php:280
2279
- #: pro/classes/models/FrmProEntryMeta.php:316
2280
  #@ formidable
2281
  msgid "is invalid"
2282
  msgstr ""
2283
 
2284
- #: classes/helpers/FrmFieldsHelper.php:253
2285
- #: classes/helpers/FrmFieldsHelper.php:280
2286
- #: pro/classes/models/FrmProEntryMeta.php:316
2287
  #@ formidable
2288
  msgid "This field is invalid"
2289
  msgstr ""
2290
 
2291
- #: classes/models/FrmSettings.php:90
2292
  #@ formidable
2293
  msgid "There was a problem with your submission. Errors are marked below."
2294
  msgstr ""
@@ -2303,17 +2299,17 @@ msgstr ""
2303
  msgid "The message seen when a field response is either incorrect or missing."
2304
  msgstr ""
2305
 
2306
- #: pro/classes/models/FrmProSettings.php:20
2307
  #@ formidable
2308
  msgid "Your submission was successfully saved."
2309
  msgstr ""
2310
 
2311
- #: classes/helpers/FrmAppHelper.php:585
2312
  #@ formidable
2313
  msgid "Add/Edit Forms and Templates"
2314
  msgstr ""
2315
 
2316
- #: classes/helpers/FrmAppHelper.php:596
2317
  #@ formidable
2318
  msgid "Add Entries from Admin Area"
2319
  msgstr ""
@@ -2324,7 +2320,7 @@ msgstr ""
2324
  #: classes/views/frm-forms/new.php:4
2325
  #: classes/views/frm-statistics/list.php:5
2326
  #: classes/views/frm-statistics/list_displays.php:5
2327
- #: pro/classes/helpers/FrmProEntriesHelper.php:212
2328
  #@ formidable
2329
  msgid "Add New"
2330
  msgstr ""
@@ -2351,22 +2347,17 @@ msgstr ""
2351
  msgid "Last Updated"
2352
  msgstr ""
2353
 
2354
- #: pro/classes/views/settings/form.php:36
2355
- #@ formidable
2356
- msgid "Hide field and entry keys to prevent them from being edited. Uncheck this box to edit the saved keys for use in your template."
2357
- msgstr ""
2358
-
2359
- #: pro/classes/controllers/FrmProFormsController.php:65
2360
  #@ formidable
2361
  msgid "Post Meta"
2362
  msgstr ""
2363
 
2364
- #: classes/helpers/FrmAppHelper.php:1183
2365
  #@ formidable
2366
  msgid "at"
2367
  msgstr ""
2368
 
2369
- #: pro/classes/helpers/FrmProFieldsHelper.php:2702
2370
  #@ formidable
2371
  msgid "Default Email Message"
2372
  msgstr ""
@@ -2430,7 +2421,7 @@ msgstr ""
2430
  msgid "Post Content"
2431
  msgstr ""
2432
 
2433
- #: pro/classes/controllers/FrmProFormsController.php:64
2434
  #@ formidable
2435
  msgid "Author Email"
2436
  msgstr ""
@@ -2440,7 +2431,7 @@ msgstr ""
2440
  msgid "Custom Fields"
2441
  msgstr ""
2442
 
2443
- #: pro/classes/views/displays/where_row.php:23
2444
  #@ formidable
2445
  msgid "NOT like"
2446
  msgstr ""
@@ -2452,1217 +2443,1217 @@ msgstr ""
2452
  msgid "Are you sure you want to delete this entry?"
2453
  msgstr ""
2454
 
2455
- #: pro/classes/controllers/FrmProFormsController.php:68
2456
  #@ formidable
2457
  msgid "Replace 'whatever' with the parameter name. In url.com?product=form, the variable is 'product'. You would use [get param=product] in your field."
2458
  msgstr ""
2459
 
2460
- #: classes/views/styles/_section-fields.php:50
2461
  #@ formidable
2462
  msgid "Bottom Margin"
2463
  msgstr ""
2464
 
2465
- #: classes/helpers/FrmFieldsHelper.php:1397
2466
  #@ formidable
2467
  msgid "Countries"
2468
  msgstr ""
2469
 
2470
- #: classes/helpers/FrmFieldsHelper.php:1406
2471
  #@ formidable
2472
  msgid "U.S. States"
2473
  msgstr ""
2474
 
2475
- #: classes/helpers/FrmFieldsHelper.php:1402
2476
  #@ formidable
2477
  msgid "U.S. State Abbreviations"
2478
  msgstr ""
2479
 
2480
- #: classes/helpers/FrmFieldsHelper.php:1409
2481
  #@ formidable
2482
  msgid "Age"
2483
  msgstr ""
2484
 
2485
- #: classes/helpers/FrmFieldsHelper.php:1410
2486
  #@ formidable
2487
  msgid "Under 18"
2488
  msgstr ""
2489
 
2490
- #: classes/helpers/FrmFieldsHelper.php:1410
2491
  #@ formidable
2492
  msgid "18-24"
2493
  msgstr ""
2494
 
2495
- #: classes/helpers/FrmFieldsHelper.php:1410
2496
  #@ formidable
2497
  msgid "25-34"
2498
  msgstr ""
2499
 
2500
- #: classes/helpers/FrmFieldsHelper.php:1411
2501
  #@ formidable
2502
  msgid "35-44"
2503
  msgstr ""
2504
 
2505
- #: classes/helpers/FrmFieldsHelper.php:1411
2506
  #@ formidable
2507
  msgid "45-54"
2508
  msgstr ""
2509
 
2510
- #: classes/helpers/FrmFieldsHelper.php:1411
2511
  #@ formidable
2512
  msgid "55-64"
2513
  msgstr ""
2514
 
2515
- #: classes/helpers/FrmFieldsHelper.php:1412
2516
  #@ formidable
2517
  msgid "65 or Above"
2518
  msgstr ""
2519
 
2520
- #: classes/helpers/FrmFieldsHelper.php:1412
2521
  #@ formidable
2522
  msgid "Prefer Not to Answer"
2523
  msgstr ""
2524
 
2525
- #: classes/helpers/FrmFieldsHelper.php:1415
2526
  #@ formidable
2527
  msgid "Satisfaction"
2528
  msgstr ""
2529
 
2530
- #: classes/helpers/FrmFieldsHelper.php:1416
2531
  #@ formidable
2532
  msgid "Very Satisfied"
2533
  msgstr ""
2534
 
2535
- #: classes/helpers/FrmFieldsHelper.php:1416
2536
  #@ formidable
2537
  msgid "Satisfied"
2538
  msgstr ""
2539
 
2540
- #: classes/helpers/FrmFieldsHelper.php:1416
2541
- #: classes/helpers/FrmFieldsHelper.php:1421
2542
- #: classes/helpers/FrmFieldsHelper.php:1426
2543
  #@ formidable
2544
  msgid "Neutral"
2545
  msgstr ""
2546
 
2547
- #: classes/helpers/FrmFieldsHelper.php:1417
2548
  #@ formidable
2549
  msgid "Unsatisfied"
2550
  msgstr ""
2551
 
2552
- #: classes/helpers/FrmFieldsHelper.php:1417
2553
  #@ formidable
2554
  msgid "Very Unsatisfied"
2555
  msgstr ""
2556
 
2557