Version Description
bug in conditional fields fixed
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.7.54 |
Comparing to | |
See all releases |
Code changes from version 1.7.53 to 1.7.54
- admin/views/FMViewManage_fm.php +45 -53
- form-maker.php +2 -2
- js/form_maker_manage.js +88 -41
- readme.txt +4 -1
admin/views/FMViewManage_fm.php
CHANGED
@@ -2656,51 +2656,44 @@ class FMViewManage_fm {
|
|
2656 |
jQuery("#preview_form").attr("href", '<?php echo add_query_arg(array('action' => 'FormMakerPreview', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&test_theme=' + jQuery("#theme").val() + '&width=1000&height=500&TB_iframe=1');
|
2657 |
jQuery("#edit_css").attr("href", '<?php echo add_query_arg(array('action' => 'FormMakerEditCSS', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&id=' + jQuery("#theme").val() + '&width=800&height=500&TB_iframe=1');
|
2658 |
}
|
2659 |
-
|
2660 |
-
|
2661 |
-
|
2662 |
-
|
2663 |
-
|
2664 |
-
|
2665 |
-
|
2666 |
-
|
2667 |
-
|
2668 |
-
|
2669 |
-
|
2670 |
-
|
2671 |
-
|
2672 |
-
|
2673 |
-
|
2674 |
-
|
2675 |
-
|
2676 |
-
|
2677 |
-
|
2678 |
-
|
2679 |
-
|
2680 |
-
|
2681 |
-
|
2682 |
-
|
2683 |
-
|
2684 |
-
|
2685 |
-
|
2686 |
-
|
2687 |
-
|
2688 |
-
|
2689 |
-
|
2690 |
-
|
2691 |
-
|
2692 |
-
|
2693 |
-
|
2694 |
-
|
2695 |
-
|
2696 |
-
|
2697 |
-
field_condition+="*:*new_condition*:*";
|
2698 |
-
|
2699 |
-
}
|
2700 |
-
}
|
2701 |
-
document.getElementById('condition').value = field_condition;
|
2702 |
-
}
|
2703 |
-
|
2704 |
function show_verify_options(s){
|
2705 |
if(s){
|
2706 |
jQuery(".verification_div").removeAttr( "style" );
|
@@ -3939,14 +3932,13 @@ class FMViewManage_fm {
|
|
3939 |
|
3940 |
$w_choices_price = explode('*:*w_choices_price*:*',$w_choices[1]);
|
3941 |
$w_choices_price_array = explode('***',$w_choices_price[0]);
|
3942 |
-
|
3943 |
for($m=0; $m<count($w_choices_array); $m++)
|
3944 |
{
|
3945 |
-
if($types[$key_select_or_input]=="type_paypal_checkbox")
|
3946 |
-
|
3947 |
else
|
3948 |
-
|
3949 |
-
|
3950 |
if(in_array(esc_html($w_choice),$multiselect))
|
3951 |
{
|
3952 |
$selected = 'selected="selected"';
|
@@ -3954,9 +3946,9 @@ class FMViewManage_fm {
|
|
3954 |
else
|
3955 |
$selected ='';
|
3956 |
|
3957 |
-
|
3958 |
-
|
3959 |
-
|
3960 |
}
|
3961 |
|
3962 |
if($types[$key_select_or_input]=="type_address")
|
2656 |
jQuery("#preview_form").attr("href", '<?php echo add_query_arg(array('action' => 'FormMakerPreview', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&test_theme=' + jQuery("#theme").val() + '&width=1000&height=500&TB_iframe=1');
|
2657 |
jQuery("#edit_css").attr("href", '<?php echo add_query_arg(array('action' => 'FormMakerEditCSS', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&id=' + jQuery("#theme").val() + '&width=800&height=500&TB_iframe=1');
|
2658 |
}
|
2659 |
+
function set_condition() {
|
2660 |
+
field_condition = '';
|
2661 |
+
for(i=0;i<100;i++) {
|
2662 |
+
conditions = '';
|
2663 |
+
if(document.getElementById("condition"+i)) {
|
2664 |
+
field_condition+=document.getElementById("show_hide"+i).value+"*:*show_hide*:*";
|
2665 |
+
field_condition+=document.getElementById("fields"+i).value+"*:*field_label*:*";
|
2666 |
+
field_condition+=document.getElementById("all_any"+i).value+"*:*all_any*:*";
|
2667 |
+
for(k=0;k<100;k++) {
|
2668 |
+
if(document.getElementById("condition_div"+i+"_"+k)) {
|
2669 |
+
conditions+=document.getElementById("field_labels"+i+"_"+k).value+"***";
|
2670 |
+
conditions+=document.getElementById("is_select"+i+"_"+k).value+"***";
|
2671 |
+
if(document.getElementById("field_value"+i+"_"+k).tagName=="SELECT" ) {
|
2672 |
+
if(document.getElementById("field_value"+i+"_"+k).getAttribute('multiple')) {
|
2673 |
+
var sel = document.getElementById("field_value"+i+"_"+k);
|
2674 |
+
var selValues = '';
|
2675 |
+
for(m=0; m < sel.length; m++) {
|
2676 |
+
if(sel.options[m].selected)
|
2677 |
+
|
2678 |
+
selValues += sel.options[m].value+"@@@";
|
2679 |
+
}
|
2680 |
+
conditions+=selValues;
|
2681 |
+
} else {
|
2682 |
+
conditions+=document.getElementById("field_value"+i+"_"+k).value;
|
2683 |
+
}
|
2684 |
+
}
|
2685 |
+
else
|
2686 |
+
conditions+=document.getElementById("field_value"+i+"_"+k).value;
|
2687 |
+
conditions+="*:*next_condition*:*";
|
2688 |
+
}
|
2689 |
+
}
|
2690 |
+
field_condition+=conditions;
|
2691 |
+
field_condition+="*:*new_condition*:*";
|
2692 |
+
}
|
2693 |
+
}
|
2694 |
+
document.getElementById('condition').value = field_condition;
|
2695 |
+
}
|
2696 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2697 |
function show_verify_options(s){
|
2698 |
if(s){
|
2699 |
jQuery(".verification_div").removeAttr( "style" );
|
3932 |
|
3933 |
$w_choices_price = explode('*:*w_choices_price*:*',$w_choices[1]);
|
3934 |
$w_choices_price_array = explode('***',$w_choices_price[0]);
|
|
|
3935 |
for($m=0; $m<count($w_choices_array); $m++)
|
3936 |
{
|
3937 |
+
if($types[$key_select_or_input]=="type_paypal_checkbox" || $types[$key_select_or_input]=="type_paypal_radio" || $types[$key_select_or_input]=="type_paypal_shipping" || $types[$key_select_or_input]=="type_paypal_select")
|
3938 |
+
$w_choice = $w_choices_array[$m].'*:*value*:*'.$w_choices_price_array[$m];
|
3939 |
else
|
3940 |
+
$w_choice = $w_choices_array[$m];
|
3941 |
+
|
3942 |
if(in_array(esc_html($w_choice),$multiselect))
|
3943 |
{
|
3944 |
$selected = 'selected="selected"';
|
3946 |
else
|
3947 |
$selected ='';
|
3948 |
|
3949 |
+
if(strpos($w_choices_array[$m], '[') === false && strpos($w_choices_array[$m], ']') === false && strpos($w_choices_array[$m], ':') === false) {
|
3950 |
+
echo '<option id="choise_'.$k.'_'.$m.'" value="'.$w_choice.'" '.$selected.'>'.$w_choices_array[$m].'</option>';
|
3951 |
+
}
|
3952 |
}
|
3953 |
|
3954 |
if($types[$key_select_or_input]=="type_address")
|
form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
-
* Version: 1.7.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -231,7 +231,7 @@ if (class_exists('WP_Widget')) {
|
|
231 |
// Activate plugin.
|
232 |
function form_maker_activate() {
|
233 |
$version = get_option("wd_form_maker_version");
|
234 |
-
$new_version = '1.7.
|
235 |
if (!$version) {
|
236 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
237 |
global $wpdb;
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
+
* Version: 1.7.54
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
231 |
// Activate plugin.
|
232 |
function form_maker_activate() {
|
233 |
$version = get_option("wd_form_maker_version");
|
234 |
+
$new_version = '1.7.54';
|
235 |
if (!$version) {
|
236 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
237 |
global $wpdb;
|
js/form_maker_manage.js
CHANGED
@@ -663,30 +663,20 @@ function change_choices(value, ids, types, params) {
|
|
663 |
break;
|
664 |
|
665 |
case "type_own_select":
|
666 |
-
case "type_paypal_select":
|
667 |
case "type_radio":
|
668 |
case "type_checkbox":
|
669 |
-
|
670 |
-
case "type_paypal_checkbox":
|
671 |
-
case "type_paypal_shipping":
|
672 |
-
|
673 |
-
if(types_array[id]=="type_own_select" || types_array[id]=="type_paypal_select")
|
674 |
w_size = params_array[id].split('*:*w_size*:*');
|
675 |
else
|
676 |
w_size = params_array[id].split('*:*w_flow*:*');
|
677 |
|
678 |
w_choices = w_size[1].split('*:*w_choices*:*');
|
679 |
w_choices_array = w_choices[0].split('***');
|
680 |
-
|
681 |
-
if(types_array[id]== "type_paypal_checkbox") {
|
682 |
-
w_choices_price = w_choices[1].split('*:*w_choices_price*:*');
|
683 |
-
w_choices_price_array = w_choices_price[0].split('***');
|
684 |
-
}
|
685 |
|
686 |
var choise_select = document.createElement('select');
|
687 |
choise_select.setAttribute("id", "field_value"+global_index+'_'+index);
|
688 |
choise_select.style.cssText = "vertical-align: top; width:200px;";
|
689 |
-
if(types_array[id]== "type_checkbox"
|
690 |
choise_select.setAttribute('multiple', 'multiple');
|
691 |
choise_select.setAttribute('class', 'multiple_select');
|
692 |
}
|
@@ -694,9 +684,6 @@ function change_choices(value, ids, types, params) {
|
|
694 |
for(k=0; k<w_choices_array.length; k++) {
|
695 |
var choise_option = document.createElement('option');
|
696 |
choise_option.setAttribute("id", "choise_"+global_index+'_'+k);
|
697 |
-
if(types_array[id]== "type_paypal_checkbox")
|
698 |
-
choise_option.setAttribute("value", w_choices_array[k]+'*:*value*:*'+w_choices_price_array[k]);
|
699 |
-
else
|
700 |
choise_option.setAttribute("value", w_choices_array[k]);
|
701 |
choise_option.innerHTML = w_choices_array[k];
|
702 |
if(w_choices_array[k].indexOf('[') === -1 && w_choices_array[k].indexOf(']') === -1 && w_choices_array[k].indexOf(':') === -1) {
|
@@ -709,7 +696,45 @@ function change_choices(value, ids, types, params) {
|
|
709 |
document.getElementById("condition_div"+global_index+"_"+index).insertBefore(document.createTextNode(' '),document.getElementById("delete_condition"+global_index+"_"+index));
|
710 |
|
711 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
713 |
case "type_address":
|
714 |
|
715 |
coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
|
@@ -855,49 +880,71 @@ function add_condition_fields(num, ids1, labels1, types1, params1) {
|
|
855 |
case "type_checkbox":
|
856 |
case "type_radio":
|
857 |
case "type_own_select":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
858 |
case "type_paypal_select":
|
859 |
case "type_paypal_checkbox":
|
860 |
case "type_paypal_radio":
|
861 |
case "type_paypal_shipping":
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
|
|
|
|
867 |
|
868 |
-
w_choices = w_size[1].split('*:*w_choices*:*');
|
869 |
-
w_choices_array = w_choices[0].split('***');
|
870 |
-
|
871 |
-
if(types[index_of_field]== "type_paypal_checkbox") {
|
872 |
w_choices_price = w_choices[1].split('*:*w_choices_price*:*');
|
873 |
w_choices_price_array = w_choices_price[0].split('***');
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
for(k=0; k<w_choices_array.length; k++) {
|
885 |
var choise_option = document.createElement('option');
|
886 |
choise_option.setAttribute("id", "choise_"+num+'_'+k);
|
887 |
-
if(types[index_of_field]== "type_paypal_checkbox")
|
888 |
choise_option.setAttribute("value", w_choices_array[k]+'*:*value*:*'+w_choices_price_array[k]);
|
889 |
-
else
|
890 |
-
choise_option.setAttribute("value", w_choices_array[k]);
|
891 |
choise_option.innerHTML = w_choices_array[k];
|
892 |
|
893 |
if(w_choices_array[k].indexOf('[') === -1 && w_choices_array[k].indexOf(']') === -1 && w_choices_array[k].indexOf(':') === -1) {
|
894 |
-
|
895 |
-
|
896 |
}
|
897 |
condition_div.appendChild(choise_select);
|
898 |
-
|
899 |
break;
|
900 |
-
|
901 |
case "type_address":
|
902 |
coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
|
903 |
|
663 |
break;
|
664 |
|
665 |
case "type_own_select":
|
|
|
666 |
case "type_radio":
|
667 |
case "type_checkbox":
|
668 |
+
if(types_array[id]=="type_paypal_select")
|
|
|
|
|
|
|
|
|
669 |
w_size = params_array[id].split('*:*w_size*:*');
|
670 |
else
|
671 |
w_size = params_array[id].split('*:*w_flow*:*');
|
672 |
|
673 |
w_choices = w_size[1].split('*:*w_choices*:*');
|
674 |
w_choices_array = w_choices[0].split('***');
|
|
|
|
|
|
|
|
|
|
|
675 |
|
676 |
var choise_select = document.createElement('select');
|
677 |
choise_select.setAttribute("id", "field_value"+global_index+'_'+index);
|
678 |
choise_select.style.cssText = "vertical-align: top; width:200px;";
|
679 |
+
if(types_array[id]== "type_checkbox") {
|
680 |
choise_select.setAttribute('multiple', 'multiple');
|
681 |
choise_select.setAttribute('class', 'multiple_select');
|
682 |
}
|
684 |
for(k=0; k<w_choices_array.length; k++) {
|
685 |
var choise_option = document.createElement('option');
|
686 |
choise_option.setAttribute("id", "choise_"+global_index+'_'+k);
|
|
|
|
|
|
|
687 |
choise_option.setAttribute("value", w_choices_array[k]);
|
688 |
choise_option.innerHTML = w_choices_array[k];
|
689 |
if(w_choices_array[k].indexOf('[') === -1 && w_choices_array[k].indexOf(']') === -1 && w_choices_array[k].indexOf(':') === -1) {
|
696 |
document.getElementById("condition_div"+global_index+"_"+index).insertBefore(document.createTextNode(' '),document.getElementById("delete_condition"+global_index+"_"+index));
|
697 |
|
698 |
break;
|
699 |
+
|
700 |
+
case "type_paypal_select":
|
701 |
+
case "type_paypal_radio":
|
702 |
+
case "type_paypal_checkbox":
|
703 |
+
case "type_paypal_shipping":
|
704 |
+
|
705 |
+
if(types_array[id]=="type_paypal_select")
|
706 |
+
w_size = params_array[id].split('*:*w_size*:*');
|
707 |
+
else
|
708 |
+
w_size = params_array[id].split('*:*w_flow*:*');
|
709 |
+
|
710 |
+
w_choices = w_size[1].split('*:*w_choices*:*');
|
711 |
+
w_choices_array = w_choices[0].split('***');
|
712 |
+
|
713 |
+
w_choices_price = w_choices[1].split('*:*w_choices_price*:*');
|
714 |
+
w_choices_price_array = w_choices_price[0].split('***');
|
715 |
|
716 |
+
var choise_select = document.createElement('select');
|
717 |
+
choise_select.setAttribute("id", "field_value"+global_index+'_'+index);
|
718 |
+
choise_select.style.cssText = "vertical-align: top; width:200px;";
|
719 |
+
if(types_array[id]== "type_paypal_checkbox") {
|
720 |
+
choise_select.setAttribute('multiple', 'multiple');
|
721 |
+
choise_select.setAttribute('class', 'multiple_select');
|
722 |
+
}
|
723 |
+
|
724 |
+
for(k=0; k<w_choices_array.length; k++) {
|
725 |
+
var choise_option = document.createElement('option');
|
726 |
+
choise_option.setAttribute("id", "choise_"+global_index+'_'+k);
|
727 |
+
choise_option.setAttribute("value", w_choices_array[k]+'*:*value*:*'+w_choices_price_array[k]);
|
728 |
+
choise_option.innerHTML = w_choices_array[k];
|
729 |
+
if(w_choices_array[k].indexOf('[') === -1 && w_choices_array[k].indexOf(']') === -1 && w_choices_array[k].indexOf(':') === -1) {
|
730 |
+
choise_select.appendChild(choise_option);
|
731 |
+
}
|
732 |
+
}
|
733 |
+
|
734 |
+
document.getElementById("condition_div"+global_index+"_"+index).removeChild(document.getElementById("field_value"+global_index+"_"+index));
|
735 |
+
document.getElementById("condition_div"+global_index+"_"+index).insertBefore(choise_select,document.getElementById("delete_condition"+global_index+"_"+index));
|
736 |
+
document.getElementById("condition_div"+global_index+"_"+index).insertBefore(document.createTextNode(' '),document.getElementById("delete_condition"+global_index+"_"+index));
|
737 |
+
break;
|
738 |
case "type_address":
|
739 |
|
740 |
coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
|
880 |
case "type_checkbox":
|
881 |
case "type_radio":
|
882 |
case "type_own_select":
|
883 |
+
if(types[index_of_field]=="type_own_select")
|
884 |
+
w_size = params[index_of_field].split('*:*w_size*:*');
|
885 |
+
else
|
886 |
+
w_size = params[index_of_field].split('*:*w_flow*:*');
|
887 |
+
|
888 |
+
w_choices = w_size[1].split('*:*w_choices*:*');
|
889 |
+
w_choices_array = w_choices[0].split('***');
|
890 |
+
|
891 |
+
var choise_select = document.createElement('select');
|
892 |
+
choise_select.setAttribute("id", "field_value"+num+'_'+m);
|
893 |
+
choise_select.style.cssText = "vertical-align: top; width:200px;";
|
894 |
+
if(types[index_of_field]== "type_checkbox") {
|
895 |
+
choise_select.setAttribute('multiple', 'multiple');
|
896 |
+
choise_select.setAttribute('class', 'multiple_select');
|
897 |
+
}
|
898 |
+
|
899 |
+
for(k=0; k<w_choices_array.length; k++) {
|
900 |
+
var choise_option = document.createElement('option');
|
901 |
+
choise_option.setAttribute("id", "choise_"+num+'_'+k);
|
902 |
+
choise_option.setAttribute("value", w_choices_array[k]);
|
903 |
+
choise_option.innerHTML = w_choices_array[k];
|
904 |
+
|
905 |
+
if(w_choices_array[k].indexOf('[') === -1 && w_choices_array[k].indexOf(']') === -1 && w_choices_array[k].indexOf(':') === -1) {
|
906 |
+
choise_select.appendChild(choise_option);
|
907 |
+
}
|
908 |
+
}
|
909 |
+
condition_div.appendChild(choise_select);
|
910 |
+
|
911 |
+
break;
|
912 |
+
|
913 |
case "type_paypal_select":
|
914 |
case "type_paypal_checkbox":
|
915 |
case "type_paypal_radio":
|
916 |
case "type_paypal_shipping":
|
917 |
+
if(types[index_of_field]=="type_paypal_select")
|
918 |
+
w_size = params[index_of_field].split('*:*w_size*:*');
|
919 |
+
else
|
920 |
+
w_size = params[index_of_field].split('*:*w_flow*:*');
|
921 |
+
|
922 |
+
w_choices = w_size[1].split('*:*w_choices*:*');
|
923 |
+
w_choices_array = w_choices[0].split('***');
|
924 |
|
|
|
|
|
|
|
|
|
925 |
w_choices_price = w_choices[1].split('*:*w_choices_price*:*');
|
926 |
w_choices_price_array = w_choices_price[0].split('***');
|
927 |
+
|
928 |
+
var choise_select = document.createElement('select');
|
929 |
+
choise_select.setAttribute("id", "field_value"+num+'_'+m);
|
930 |
+
choise_select.style.cssText = "vertical-align: top; width:200px;";
|
931 |
+
if(types[index_of_field]== "type_paypal_checkbox") {
|
932 |
+
choise_select.setAttribute('multiple', 'multiple');
|
933 |
+
choise_select.setAttribute('class', 'multiple_select');
|
934 |
+
}
|
935 |
+
|
|
|
936 |
for(k=0; k<w_choices_array.length; k++) {
|
937 |
var choise_option = document.createElement('option');
|
938 |
choise_option.setAttribute("id", "choise_"+num+'_'+k);
|
|
|
939 |
choise_option.setAttribute("value", w_choices_array[k]+'*:*value*:*'+w_choices_price_array[k]);
|
|
|
|
|
940 |
choise_option.innerHTML = w_choices_array[k];
|
941 |
|
942 |
if(w_choices_array[k].indexOf('[') === -1 && w_choices_array[k].indexOf(']') === -1 && w_choices_array[k].indexOf(':') === -1) {
|
943 |
+
choise_select.appendChild(choise_option);
|
944 |
+
}
|
945 |
}
|
946 |
condition_div.appendChild(choise_select);
|
|
|
947 |
break;
|
|
|
948 |
case "type_address":
|
949 |
coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
|
950 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-form.html
|
|
4 |
Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -279,6 +279,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
|
|
279 |
|
280 |
== Changelog ==
|
281 |
|
|
|
|
|
|
|
282 |
= 1.7.53 =
|
283 |
bug in select field fixed
|
284 |
|
4 |
Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 1.7.54
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
279 |
|
280 |
== Changelog ==
|
281 |
|
282 |
+
= 1.7.54 =
|
283 |
+
bug in conditional fields fixed
|
284 |
+
|
285 |
= 1.7.53 =
|
286 |
bug in select field fixed
|
287 |
|