Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms - Version 1.9.14

Version Description

  • Bugfix: Masked Number field had wrong type HTML attribute and was not accepting more than four digits.
Download this release

Release Info

Developer thethemefoundry
Plugin Icon 128x128 Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms
Version 1.9.14
Comparing to
See all releases

Code changes from version 1.9.13 to 1.9.14

core/templates/parts/frontend-number.php CHANGED
@@ -17,6 +17,8 @@
17
  if ( $has_prefix && 'inside' === $part['label_placement'] ) {
18
  $early_label = false;
19
  }
 
 
20
  ?>
21
 
22
  <?php if ( $early_label ) : ?>
@@ -39,7 +41,7 @@
39
  <?php if ( ! $early_label && 'as_placeholder' !== $part['label_placement'] ) : ?>
40
  <?php happyforms_the_part_label( $part, $form ); ?>
41
  <?php endif; ?>
42
- <input id="<?php happyforms_the_part_id( $part, $form ); ?>" type="number" value="<?php happyforms_the_part_value( $part, $form, 0 ); ?>" name="<?php happyforms_the_part_name( $part, $form ); ?>" placeholder="<?php echo esc_attr( $part['placeholder'] ); ?>" min="<?php echo esc_attr( $part['min_value'] ) ?>" max="<?php echo esc_attr( $part['max_value'] ); ?>" <?php happyforms_the_part_attributes( $part, $form, 0 ); ?> />
43
  <?php if ( 'as_placeholder' === $part['label_placement'] ) : ?>
44
  <?php happyforms_the_part_label( $part, $form ); ?>
45
  <?php endif; ?>
@@ -81,7 +83,7 @@
81
  <?php if ( ! $early_label && 'as_placeholder' !== $part['label_placement'] ) : ?>
82
  <?php happyforms_the_part_confirmation_label( $part, $form ); ?>
83
  <?php endif; ?>
84
- <input id="<?php happyforms_the_part_id( $part, $form ); ?>_confirmation" class="happyforms-confirmation-input" type="number" name="<?php happyforms_the_part_name( $part, $form ); ?>_confirmation" value="<?php happyforms_the_part_value( $part, $form, 1 ); ?>" placeholder="<?php echo esc_attr( $part['confirmation_field_placeholder'] ); ?>" min="<?php echo esc_attr( $part['min_value'] ); ?>" max="<?php echo esc_attr( $part['max_value'] ); ?>" value="<?php echo esc_attr( $part['min_value'] ); ?>" <?php happyforms_the_part_attributes( $part, $form, 1 ); ?> />
85
  <?php if ( 'as_placeholder' === $part['label_placement'] ) : ?>
86
  <?php happyforms_the_part_confirmation_label( $part, $form ); ?>
87
  <?php endif; ?>
17
  if ( $has_prefix && 'inside' === $part['label_placement'] ) {
18
  $early_label = false;
19
  }
20
+
21
+ $input_type = ( 1 == $part['masked'] ) ? 'text' : 'number';
22
  ?>
23
 
24
  <?php if ( $early_label ) : ?>
41
  <?php if ( ! $early_label && 'as_placeholder' !== $part['label_placement'] ) : ?>
42
  <?php happyforms_the_part_label( $part, $form ); ?>
43
  <?php endif; ?>
44
+ <input id="<?php happyforms_the_part_id( $part, $form ); ?>" type="<?php echo $input_type; ?>" value="<?php happyforms_the_part_value( $part, $form, 0 ); ?>" name="<?php happyforms_the_part_name( $part, $form ); ?>" placeholder="<?php echo esc_attr( $part['placeholder'] ); ?>" min="<?php echo esc_attr( $part['min_value'] ) ?>" max="<?php echo esc_attr( $part['max_value'] ); ?>" <?php happyforms_the_part_attributes( $part, $form, 0 ); ?> />
45
  <?php if ( 'as_placeholder' === $part['label_placement'] ) : ?>
46
  <?php happyforms_the_part_label( $part, $form ); ?>
47
  <?php endif; ?>
83
  <?php if ( ! $early_label && 'as_placeholder' !== $part['label_placement'] ) : ?>
84
  <?php happyforms_the_part_confirmation_label( $part, $form ); ?>
85
  <?php endif; ?>
86
+ <input id="<?php happyforms_the_part_id( $part, $form ); ?>_confirmation" class="happyforms-confirmation-input" type="<?php echo $input_type; ?>" name="<?php happyforms_the_part_name( $part, $form ); ?>_confirmation" value="<?php happyforms_the_part_value( $part, $form, 1 ); ?>" placeholder="<?php echo esc_attr( $part['confirmation_field_placeholder'] ); ?>" min="<?php echo esc_attr( $part['min_value'] ); ?>" max="<?php echo esc_attr( $part['max_value'] ); ?>" value="<?php echo esc_attr( $part['min_value'] ); ?>" <?php happyforms_the_part_attributes( $part, $form, 1 ); ?> />
87
  <?php if ( 'as_placeholder' === $part['label_placement'] ) : ?>
88
  <?php happyforms_the_part_confirmation_label( $part, $form ); ?>
89
  <?php endif; ?>
happyforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: HappyForms
8
- * Version: 1.9.13
9
  * Author URI: https://happyforms.me
10
  * Upgrade URI: https://happyforms.me/upgrade
11
  */
@@ -13,7 +13,7 @@
13
  /**
14
  * The current version of the plugin.
15
  */
16
- define( 'HAPPYFORMS_VERSION', '1.9.13' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: HappyForms
8
+ * Version: 1.9.14
9
  * Author URI: https://happyforms.me
10
  * Upgrade URI: https://happyforms.me/upgrade
11
  */
13
  /**
14
  * The current version of the plugin.
15
  */
16
+ define( 'HAPPYFORMS_VERSION', '1.9.14' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
languages/happyforms.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: HappyForms 1.9.13\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
- "POT-Creation-Date: 2020-07-01 13:03:47+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: HappyForms 1.9.14\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
+ "POT-Creation-Date: 2020-07-03 14:17:22+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: contact, contact form, email, feedback form, form, form builder, custom fo
5
  Requires at least: 4.8
6
  Tested up to: 5.4
7
  Requires PHP: 5.3
8
- Stable tag: 1.9.13
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -97,6 +97,9 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more yo
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 1.9.13 =
101
  * New feature: Rows control added to Long Answer field.
102
  * Improvement: New icons for form fields in form builder.
@@ -624,6 +627,9 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more yo
624
 
625
  == Upgrade Notice ==
626
 
 
 
 
627
  = 1.9.13 =
628
  * Rows control for Long Answer field, new field icons, and improvements.
629
 
5
  Requires at least: 4.8
6
  Tested up to: 5.4
7
  Requires PHP: 5.3
8
+ Stable tag: 1.9.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.9.14 =
101
+ * Bugfix: Masked Number field had wrong type HTML attribute and was not accepting more than four digits.
102
+
103
  = 1.9.13 =
104
  * New feature: Rows control added to Long Answer field.
105
  * Improvement: New icons for form fields in form builder.
627
 
628
  == Upgrade Notice ==
629
 
630
+ = 1.9.14 =
631
+ * Bugfix for Number field which was not accepting more than four digits when Use number separators was checked.
632
+
633
  = 1.9.13 =
634
  * Rows control for Long Answer field, new field icons, and improvements.
635