Version Description
Fix bug where Validation would be removed on saving predefined fields
Download this release
Release Info
Developer | mmuro |
Plugin | Visual Form Builder |
Version | 2.6.9 |
Comparing to | |
See all releases |
Code changes from version 2.6.8 to 2.6.9
- readme.txt +12 -1
- visual-form-builder.php +40 -15
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=G87A9
|
|
4 |
Tags: form, forms, contact form, form to email, email form, email, input, validation, jquery, shortcode
|
5 |
Requires at least: 3.4.1
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 2.6.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Build beautiful, fully functional forms in only a few minutes without writing PHP, CSS, or HTML.
|
@@ -13,6 +13,10 @@ Build beautiful, fully functional forms in only a few minutes without writing PH
|
|
13 |
|
14 |
*Visual Form Builder* is a plugin that allows you to build and manage all kinds of forms for your website in a single place. Building a fully functional form takes only a few minutes and you don't have to write one bit of PHP, CSS, or HTML!
|
15 |
|
|
|
|
|
|
|
|
|
16 |
= Features =
|
17 |
|
18 |
* Add fields with one click
|
@@ -210,6 +214,10 @@ To Export Selected:
|
|
210 |
|
211 |
== Changelog ==
|
212 |
|
|
|
|
|
|
|
|
|
213 |
**Version 2.6.8**
|
214 |
|
215 |
* Add Reply-To to email headers for better compatibility with some email servers
|
@@ -465,6 +473,9 @@ To Export Selected:
|
|
465 |
|
466 |
== Upgrade Notice ==
|
467 |
|
|
|
|
|
|
|
468 |
= 2.6.8 =
|
469 |
Add Reply-To to email headers for better compatibility with some email servers; updated CSV export
|
470 |
|
4 |
Tags: form, forms, contact form, form to email, email form, email, input, validation, jquery, shortcode
|
5 |
Requires at least: 3.4.1
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 2.6.9
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Build beautiful, fully functional forms in only a few minutes without writing PHP, CSS, or HTML.
|
13 |
|
14 |
*Visual Form Builder* is a plugin that allows you to build and manage all kinds of forms for your website in a single place. Building a fully functional form takes only a few minutes and you don't have to write one bit of PHP, CSS, or HTML!
|
15 |
|
16 |
+
= Upgrade to Visual Form Builder Pro =
|
17 |
+
|
18 |
+
If you are a fan of Visual Form Builder and want extra features and functionality, [Visual Form Builder Pro](http://vfb.matthewmuro.com) is available for only **$10**.
|
19 |
+
|
20 |
= Features =
|
21 |
|
22 |
* Add fields with one click
|
214 |
|
215 |
== Changelog ==
|
216 |
|
217 |
+
**Version 2.6.9**
|
218 |
+
|
219 |
+
* Fix bug where Validation would be removed on saving predefined fields
|
220 |
+
|
221 |
**Version 2.6.8**
|
222 |
|
223 |
* Add Reply-To to email headers for better compatibility with some email servers
|
473 |
|
474 |
== Upgrade Notice ==
|
475 |
|
476 |
+
= 2.6.9 =
|
477 |
+
Fix bug where Validation would be removed on saving predefined fields
|
478 |
+
|
479 |
= 2.6.8 =
|
480 |
Add Reply-To to email headers for better compatibility with some email servers; updated CSV export
|
481 |
|
visual-form-builder.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Visual Form Builder
|
|
4 |
Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
5 |
Author: Matthew Muro
|
6 |
Author URI: http://matthewmuro.com
|
7 |
-
Version: 2.6.
|
8 |
*/
|
9 |
|
10 |
/*
|
@@ -1460,20 +1460,45 @@ class Visual_Form_Builder{
|
|
1460 |
<?php _e( 'Validation' , 'visual-form-builder'); ?>
|
1461 |
<span class="vfb-tooltip" title="About Validation" rel="Ensures user-entered data is formatted properly. For more information on Validation, refer to the Help tab at the top of this page.">(?)</span>
|
1462 |
<br />
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1477 |
</label>
|
1478 |
</p>
|
1479 |
|
4 |
Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
5 |
Author: Matthew Muro
|
6 |
Author URI: http://matthewmuro.com
|
7 |
+
Version: 2.6.9
|
8 |
*/
|
9 |
|
10 |
/*
|
1460 |
<?php _e( 'Validation' , 'visual-form-builder'); ?>
|
1461 |
<span class="vfb-tooltip" title="About Validation" rel="Ensures user-entered data is formatted properly. For more information on Validation, refer to the Help tab at the top of this page.">(?)</span>
|
1462 |
<br />
|
1463 |
+
|
1464 |
+
<?php if ( in_array( $field->field_type , array( 'text', 'time' ) ) ) : ?>
|
1465 |
+
<select name="field_validation-<?php echo $field->field_id; ?>" class="widefat" id="edit-form-item-validation-<?php echo $field->field_id; ?>">
|
1466 |
+
<?php if ( $field->field_type == 'time' ) : ?>
|
1467 |
+
<option value="time-12" <?php selected( $field->field_validation, 'time-12' ); ?>><?php _e( '12 Hour Format' , 'visual-form-builder'); ?></option>
|
1468 |
+
<option value="time-24" <?php selected( $field->field_validation, 'time-24' ); ?>><?php _e( '24 Hour Format' , 'visual-form-builder'); ?></option>
|
1469 |
+
<?php else : ?>
|
1470 |
+
<option value="" <?php selected( $field->field_validation, '' ); ?>><?php _e( 'None' , 'visual-form-builder'); ?></option>
|
1471 |
+
<option value="email" <?php selected( $field->field_validation, 'email' ); ?>><?php _e( 'Email' , 'visual-form-builder'); ?></option>
|
1472 |
+
<option value="url" <?php selected( $field->field_validation, 'url' ); ?>><?php _e( 'URL' , 'visual-form-builder'); ?></option>
|
1473 |
+
<option value="date" <?php selected( $field->field_validation, 'date' ); ?>><?php _e( 'Date' , 'visual-form-builder'); ?></option>
|
1474 |
+
<option value="number" <?php selected( $field->field_validation, 'number' ); ?>><?php _e( 'Number' , 'visual-form-builder'); ?></option>
|
1475 |
+
<option value="digits" <?php selected( $field->field_validation, 'digits' ); ?>><?php _e( 'Digits' , 'visual-form-builder'); ?></option>
|
1476 |
+
<option value="phone" <?php selected( $field->field_validation, 'phone' ); ?>><?php _e( 'Phone' , 'visual-form-builder'); ?></option>
|
1477 |
+
<?php endif; ?>
|
1478 |
+
</select>
|
1479 |
+
<?php else :
|
1480 |
+
$field_validation = '';
|
1481 |
+
|
1482 |
+
switch ( $field->field_type ) {
|
1483 |
+
case 'email' :
|
1484 |
+
case 'url' :
|
1485 |
+
case 'phone' :
|
1486 |
+
$field_validation = $field->field_type;
|
1487 |
+
break;
|
1488 |
+
|
1489 |
+
case 'currency' :
|
1490 |
+
$field_validation = 'number';
|
1491 |
+
break;
|
1492 |
+
|
1493 |
+
case 'number' :
|
1494 |
+
$field_validation = 'digits';
|
1495 |
+
break;
|
1496 |
+
}
|
1497 |
+
|
1498 |
+
?>
|
1499 |
+
<input type="text" class="widefat" name="field_validation-<?php echo $field->field_id; ?>" value="<?php echo $field_validation; ?>" readonly="readonly" />
|
1500 |
+
<?php endif; ?>
|
1501 |
+
|
1502 |
</label>
|
1503 |
</p>
|
1504 |
|