Version Description
Fixed: Bug with Hidden field in custom text in Email
Fixed: Bug on email verification custom post
Added: Field type in field edit page
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.9.16 |
| Comparing to | |
| See all releases | |
Code changes from version 1.9.15 to 1.9.16
- admin/models/FMModelUninstall_fm.php +4 -0
- css/form_maker_frontend.css +1 -1
- form-maker.php +2 -2
- frontend/models/FMModelForm_maker.php +5 -3
- frontend/views/FMViewForm_maker.php +1 -1
- js/formmaker_div_free.js +84 -21
- readme.txt +6 -1
admin/models/FMModelUninstall_fm.php
CHANGED
|
@@ -27,6 +27,7 @@ class FMModelUninstall_fm {
|
|
| 27 |
$wpdb->query("DELETE FROM " . $wpdb->prefix . "formmaker_views WHERE `form_id` NOT IN (" . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ")");
|
| 28 |
}
|
| 29 |
else {
|
|
|
|
| 30 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker");
|
| 31 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_submits");
|
| 32 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_views");
|
|
@@ -34,7 +35,10 @@ class FMModelUninstall_fm {
|
|
| 34 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_sessions");
|
| 35 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_blocked");
|
| 36 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_query");
|
|
|
|
| 37 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_backup");
|
|
|
|
|
|
|
| 38 |
delete_option('contact_form_forms');
|
| 39 |
delete_option("wd_form_maker_version");
|
| 40 |
delete_option('formmaker_cureent_version');
|
| 27 |
$wpdb->query("DELETE FROM " . $wpdb->prefix . "formmaker_views WHERE `form_id` NOT IN (" . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ")");
|
| 28 |
}
|
| 29 |
else {
|
| 30 |
+
$email_verification_post_id = $wpdb->get_var( "SELECT mail_verification_post_id FROM " . $wpdb->prefix . "formmaker WHERE mail_verification_post_id != 0");
|
| 31 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker");
|
| 32 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_submits");
|
| 33 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_views");
|
| 35 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_sessions");
|
| 36 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_blocked");
|
| 37 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_query");
|
| 38 |
+
|
| 39 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_backup");
|
| 40 |
+
wp_delete_post($email_verification_post_id);
|
| 41 |
+
|
| 42 |
delete_option('contact_form_forms');
|
| 43 |
delete_option("wd_form_maker_version");
|
| 44 |
delete_option('formmaker_cureent_version');
|
css/form_maker_frontend.css
CHANGED
|
@@ -35,8 +35,8 @@ div[type="type_captcha"] .wdform-element-section * {
|
|
| 35 |
}
|
| 36 |
div.ui-datepicker{
|
| 37 |
font-size:15px !important;
|
|
|
|
| 38 |
}
|
| 39 |
-
|
| 40 |
.ui-datepicker {
|
| 41 |
background: #F2F2F2 !important;
|
| 42 |
border: 1px solid #F2F2F2 !important;
|
| 35 |
}
|
| 36 |
div.ui-datepicker{
|
| 37 |
font-size:15px !important;
|
| 38 |
+
z-index : 1000 !important;;
|
| 39 |
}
|
|
|
|
| 40 |
.ui-datepicker {
|
| 41 |
background: #F2F2F2 !important;
|
| 42 |
border: 1px solid #F2F2F2 !important;
|
form-maker.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Form Maker
|
| 4 |
* Plugin URI: https://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.9.
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: https://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -272,7 +272,7 @@ function register_fmemailverification_cpt(){
|
|
| 272 |
// Activate plugin.
|
| 273 |
function form_maker_activate() {
|
| 274 |
$version = get_option("wd_form_maker_version");
|
| 275 |
-
$new_version = '1.9.
|
| 276 |
global $wpdb;
|
| 277 |
if (!$version) {
|
| 278 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
| 3 |
* Plugin Name: Form Maker
|
| 4 |
* Plugin URI: https://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.9.16
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: https://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 272 |
// Activate plugin.
|
| 273 |
function form_maker_activate() {
|
| 274 |
$version = get_option("wd_form_maker_version");
|
| 275 |
+
$new_version = '1.9.16';
|
| 276 |
global $wpdb;
|
| 277 |
if (!$version) {
|
| 278 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
frontend/models/FMModelForm_maker.php
CHANGED
|
@@ -2330,8 +2330,9 @@ class FMModelForm_maker {
|
|
| 2330 |
|
| 2331 |
foreach($label_order_original as $key => $label_each) {
|
| 2332 |
$type=$label_type[$key];
|
|
|
|
| 2333 |
if(strpos($row->script_mail_user, "%".$label_each."%") > -1) {
|
| 2334 |
-
$new_value = $this->custom_fields_mail($type, $
|
| 2335 |
$new_script = str_replace("%".$label_each."%", $new_value, $new_script);
|
| 2336 |
}
|
| 2337 |
else{
|
|
@@ -2485,8 +2486,9 @@ class FMModelForm_maker {
|
|
| 2485 |
|
| 2486 |
foreach($label_order_original as $key => $label_each) {
|
| 2487 |
$type=$label_type[$key];
|
|
|
|
| 2488 |
if(strpos($row->script_mail, "%".$label_each."%") > -1) {
|
| 2489 |
-
$new_value = $this->custom_fields_mail($type, $
|
| 2490 |
$new_script = str_replace("%".$label_each."%", $new_value, $new_script);
|
| 2491 |
}
|
| 2492 |
else{
|
|
@@ -4419,7 +4421,7 @@ class FMModelForm_maker {
|
|
| 4419 |
}
|
| 4420 |
|
| 4421 |
case "type_hidden": {
|
| 4422 |
-
$element = isset($_POST[$
|
| 4423 |
if(isset($element)) {
|
| 4424 |
$new_value = $element;
|
| 4425 |
}
|
| 2330 |
|
| 2331 |
foreach($label_order_original as $key => $label_each) {
|
| 2332 |
$type=$label_type[$key];
|
| 2333 |
+
$key1 = $type == 'type_hidden' ? $label_each : $key;
|
| 2334 |
if(strpos($row->script_mail_user, "%".$label_each."%") > -1) {
|
| 2335 |
+
$new_value = $this->custom_fields_mail($type, $key1, $id, $attachment_user, '');
|
| 2336 |
$new_script = str_replace("%".$label_each."%", $new_value, $new_script);
|
| 2337 |
}
|
| 2338 |
else{
|
| 2486 |
|
| 2487 |
foreach($label_order_original as $key => $label_each) {
|
| 2488 |
$type=$label_type[$key];
|
| 2489 |
+
$key1 = $type == 'type_hidden' ? $label_each : $key;
|
| 2490 |
if(strpos($row->script_mail, "%".$label_each."%") > -1) {
|
| 2491 |
+
$new_value = $this->custom_fields_mail($type, $key1, $id, $attachment, '');
|
| 2492 |
$new_script = str_replace("%".$label_each."%", $new_value, $new_script);
|
| 2493 |
}
|
| 2494 |
else{
|
| 4421 |
}
|
| 4422 |
|
| 4423 |
case "type_hidden": {
|
| 4424 |
+
$element = isset($_POST[$key]) ? $_POST[$key] : NULL;
|
| 4425 |
if(isset($element)) {
|
| 4426 |
$new_value = $element;
|
| 4427 |
}
|
frontend/views/FMViewForm_maker.php
CHANGED
|
@@ -125,7 +125,7 @@ class FMViewForm_maker {
|
|
| 125 |
}
|
| 126 |
$form_theme = implode('{', $body_or_classes_implode);
|
| 127 |
$form_theme = preg_replace($pattern, ' ', $form_theme);
|
| 128 |
-
$form_maker_front_end .= '<style
|
| 129 |
wp_print_scripts('main' . (($old == false || ($old == true && $row->form=='')) ? '_div' : '') . '_front_end', WD_FM_URL . '/js/main' . (($old == false || ($old == true && $row->form=='')) ? '_div' : '') . '_front_end.js?ver='. get_option("wd_form_maker_version"));
|
| 130 |
$form_currency = '$';
|
| 131 |
$check_js = '';
|
| 125 |
}
|
| 126 |
$form_theme = implode('{', $body_or_classes_implode);
|
| 127 |
$form_theme = preg_replace($pattern, ' ', $form_theme);
|
| 128 |
+
$form_maker_front_end .= '<style>#form' . $id . ' input[type="text"] {box-sizing: border-box;} ' . str_replace('[SITE_ROOT]', WD_FM_URL, $form_theme) . '</style>';
|
| 129 |
wp_print_scripts('main' . (($old == false || ($old == true && $row->form=='')) ? '_div' : '') . '_front_end', WD_FM_URL . '/js/main' . (($old == false || ($old == true && $row->form=='')) ? '_div' : '') . '_front_end.js?ver='. get_option("wd_form_maker_version"));
|
| 130 |
$form_currency = '$';
|
| 131 |
$check_js = '';
|
js/formmaker_div_free.js
CHANGED
|
@@ -756,6 +756,50 @@ var form_id_temp = jQuery("#current_id").val() > 0 ? jQuery("#current_id").val()
|
|
| 756 |
}
|
| 757 |
}
|
| 758 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 759 |
|
| 760 |
function refresh_id_name(i, type)
|
| 761 |
{
|
|
@@ -4826,6 +4870,7 @@ function type_submit_reset(i, w_submit_title , w_reset_title , w_class, w_act, w
|
|
| 4826 |
edit_div.appendChild(edit_main_table);
|
| 4827 |
|
| 4828 |
t.appendChild(edit_div);
|
|
|
|
| 4829 |
|
| 4830 |
var adding_type = document.createElement("input");
|
| 4831 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -5083,7 +5128,7 @@ function type_hidden(i, w_name, w_value, w_attr_name, w_attr_value){
|
|
| 5083 |
edit_div.appendChild(edit_main_table);
|
| 5084 |
|
| 5085 |
t.appendChild(edit_div);
|
| 5086 |
-
|
| 5087 |
element='input'; type='hidden';
|
| 5088 |
var adding_type = document.createElement("input");
|
| 5089 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -5425,7 +5470,7 @@ function type_button(i, w_title , w_func , w_class, w_attr_name, w_attr_value){
|
|
| 5425 |
edit_div.appendChild(edit_main_table);
|
| 5426 |
|
| 5427 |
t.appendChild(edit_div);
|
| 5428 |
-
|
| 5429 |
//show table
|
| 5430 |
|
| 5431 |
element='button'; type='button';
|
|
@@ -5733,7 +5778,7 @@ function type_send_copy(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 5733 |
|
| 5734 |
t.appendChild(edit_div);
|
| 5735 |
add_id_and_name(i, 'type_text');
|
| 5736 |
-
|
| 5737 |
//show table
|
| 5738 |
|
| 5739 |
element='input'; type='checkbox';
|
|
@@ -6311,7 +6356,7 @@ function type_text(i, w_field_label, w_field_label_size, w_field_label_pos, w_s
|
|
| 6311 |
|
| 6312 |
t.appendChild(edit_div);
|
| 6313 |
add_id_and_name(i, 'type_text');
|
| 6314 |
-
|
| 6315 |
//show table
|
| 6316 |
|
| 6317 |
element='input'; type='text';
|
|
@@ -6794,7 +6839,7 @@ function type_number(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 6794 |
|
| 6795 |
t.appendChild(edit_div);
|
| 6796 |
add_id_and_name(i, 'type_text');
|
| 6797 |
-
|
| 6798 |
//show table
|
| 6799 |
|
| 6800 |
element='input'; type='text';
|
|
@@ -7221,7 +7266,7 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 7221 |
|
| 7222 |
t.appendChild(edit_div);
|
| 7223 |
add_id_and_name(i, 'type_text');
|
| 7224 |
-
|
| 7225 |
//show table
|
| 7226 |
|
| 7227 |
element='input'; type='password';
|
|
@@ -7677,7 +7722,7 @@ function type_textarea(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 7677 |
|
| 7678 |
t.appendChild(edit_div);
|
| 7679 |
add_id_and_name(i, 'type_text');
|
| 7680 |
-
|
| 7681 |
//show table
|
| 7682 |
|
| 7683 |
element='textarea';
|
|
@@ -8100,7 +8145,7 @@ function type_wdeditor(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 8100 |
|
| 8101 |
t.appendChild(edit_div);
|
| 8102 |
add_id_and_name(i, 'type_text');
|
| 8103 |
-
|
| 8104 |
//show table
|
| 8105 |
|
| 8106 |
element='editor';
|
|
@@ -8521,7 +8566,7 @@ function type_phone(i, w_field_label, w_field_label_size, w_field_label_pos, w_s
|
|
| 8521 |
|
| 8522 |
t.appendChild(edit_div);
|
| 8523 |
add_id_and_name(i, 'type_name');
|
| 8524 |
-
|
| 8525 |
//show table
|
| 8526 |
|
| 8527 |
var adding_type = document.createElement("input");
|
|
@@ -9220,6 +9265,7 @@ else
|
|
| 9220 |
|
| 9221 |
t.appendChild(edit_div);
|
| 9222 |
add_id_and_name(i, 'type_name');
|
|
|
|
| 9223 |
//show table
|
| 9224 |
|
| 9225 |
var adding_type = document.createElement("input");
|
|
@@ -10146,6 +10192,7 @@ function type_address(i, w_field_label, w_field_label_size, w_field_label_pos, w
|
|
| 10146 |
|
| 10147 |
t.appendChild(edit_div);
|
| 10148 |
add_id_and_name(i, 'type_address');
|
|
|
|
| 10149 |
|
| 10150 |
var adding_type = document.createElement("input");
|
| 10151 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -10920,7 +10967,7 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
|
|
| 10920 |
|
| 10921 |
t.appendChild(edit_div);
|
| 10922 |
add_id_and_name(i, 'type_text');
|
| 10923 |
-
|
| 10924 |
//show table
|
| 10925 |
|
| 10926 |
element='input'; type='text';
|
|
@@ -11787,6 +11834,7 @@ function type_checkbox(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 11787 |
|
| 11788 |
refresh_rowcol(i, 'checkbox');
|
| 11789 |
add_id_and_name(i, 'type_checkbox');
|
|
|
|
| 11790 |
if(aaa)
|
| 11791 |
show_other_input(i);
|
| 11792 |
|
|
@@ -12487,6 +12535,7 @@ function type_radio(i, w_field_label, w_field_label_size, w_field_label_pos, w_f
|
|
| 12487 |
|
| 12488 |
refresh_rowcol(i, 'radio');
|
| 12489 |
add_id_and_name(i, 'type_radio');
|
|
|
|
| 12490 |
if(aaa)
|
| 12491 |
show_other_input(i);
|
| 12492 |
|
|
@@ -12835,6 +12884,7 @@ function type_time(i, w_field_label, w_field_label_size, w_field_label_pos, w_ti
|
|
| 12835 |
|
| 12836 |
t.appendChild(edit_div);
|
| 12837 |
add_id_and_name(i, 'type_time');
|
|
|
|
| 12838 |
|
| 12839 |
//show table
|
| 12840 |
var adding_type = document.createElement("input");
|
|
@@ -14251,6 +14301,7 @@ var el_format_textarea = document.createElement('input');
|
|
| 14251 |
|
| 14252 |
t.appendChild(edit_div);
|
| 14253 |
add_id_and_name(i, 'type_text');
|
|
|
|
| 14254 |
|
| 14255 |
var adding_type = document.createElement("input");
|
| 14256 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -15419,6 +15470,7 @@ var el_format_textarea = document.createElement('input');
|
|
| 15419 |
|
| 15420 |
t.appendChild(edit_div);
|
| 15421 |
add_id_and_name(i, 'type_range');
|
|
|
|
| 15422 |
|
| 15423 |
var adding_type = document.createElement("input");
|
| 15424 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -16713,7 +16765,8 @@ function type_date_fields(i, w_field_label, w_field_label_size, w_field_label_po
|
|
| 16713 |
|
| 16714 |
t.appendChild(edit_div);
|
| 16715 |
add_id_and_name(i, 'type_date_fields');
|
| 16716 |
-
|
|
|
|
| 16717 |
var adding_type = document.createElement("input");
|
| 16718 |
adding_type.setAttribute("type", "hidden");
|
| 16719 |
adding_type.setAttribute("value", "type_date_fields");
|
|
@@ -17406,7 +17459,7 @@ function type_own_select(i, w_field_label, w_field_label_size, w_field_label_pos
|
|
| 17406 |
|
| 17407 |
t.appendChild(edit_div);
|
| 17408 |
add_id_and_name(i, 'type_text');
|
| 17409 |
-
|
| 17410 |
//show table
|
| 17411 |
var adding_type = document.createElement("input");
|
| 17412 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -18034,7 +18087,8 @@ function type_star_rating(i, w_field_label, w_field_label_size, w_field_label_po
|
|
| 18034 |
edit_div.appendChild(edit_main_table);
|
| 18035 |
|
| 18036 |
t.appendChild(edit_div);
|
| 18037 |
-
|
|
|
|
| 18038 |
var adding_type = document.createElement("input");
|
| 18039 |
adding_type.setAttribute("type", "hidden");
|
| 18040 |
adding_type.setAttribute("value", "type_star_rating");
|
|
@@ -18451,7 +18505,8 @@ edit_main_td2.appendChild(el_label_position_label);
|
|
| 18451 |
edit_div.appendChild(edit_main_table);
|
| 18452 |
|
| 18453 |
t.appendChild(edit_div);
|
| 18454 |
-
|
|
|
|
| 18455 |
var adding_type = document.createElement("input");
|
| 18456 |
adding_type.setAttribute("type", "hidden");
|
| 18457 |
adding_type.setAttribute("value", "type_scale_rating");
|
|
@@ -19011,7 +19066,8 @@ edit_main_td2.appendChild(el_label_position_label);
|
|
| 19011 |
|
| 19012 |
t.appendChild(edit_div);
|
| 19013 |
add_id_and_name(i, 'type_spinner');
|
| 19014 |
-
|
|
|
|
| 19015 |
var adding_type = document.createElement("input");
|
| 19016 |
adding_type.setAttribute("type", "hidden");
|
| 19017 |
adding_type.setAttribute("value", "type_spinner");
|
|
@@ -19450,7 +19506,8 @@ edit_main_td2.appendChild(el_label_position_label);
|
|
| 19450 |
|
| 19451 |
t.appendChild(edit_div);
|
| 19452 |
add_id_and_name(i, 'type_slider');
|
| 19453 |
-
|
|
|
|
| 19454 |
var adding_type = document.createElement("input");
|
| 19455 |
adding_type.setAttribute("type", "hidden");
|
| 19456 |
adding_type.setAttribute("value", "type_slider");
|
|
@@ -19989,6 +20046,7 @@ edit_main_td2.appendChild(el_label_position_label);
|
|
| 19989 |
|
| 19990 |
t.appendChild(edit_div);
|
| 19991 |
add_id_and_name(i, 'type_range');
|
|
|
|
| 19992 |
|
| 19993 |
var adding_type = document.createElement("input");
|
| 19994 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -20596,6 +20654,7 @@ function type_grading(i, w_field_label, w_field_label_size, w_field_label_pos, w
|
|
| 20596 |
refresh_attr(i, 'type_grading');
|
| 20597 |
refresh_grading_items(i);
|
| 20598 |
add_id_and_name(i, 'type_grading');
|
|
|
|
| 20599 |
}
|
| 20600 |
|
| 20601 |
function change_total(value,id)
|
|
@@ -21041,8 +21100,10 @@ function type_matrix(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 21041 |
|
| 21042 |
edit_div.appendChild(edit_main_table);
|
| 21043 |
t.appendChild(edit_div);
|
|
|
|
| 21044 |
element='input';
|
| 21045 |
type='matrix';
|
|
|
|
| 21046 |
var adding_type = document.createElement("input");
|
| 21047 |
adding_type.setAttribute("type", "hidden");
|
| 21048 |
adding_type.setAttribute("value", "type_matrix");
|
|
@@ -21436,7 +21497,7 @@ function type_country(i, w_field_label, w_field_label_size, w_countries, w_field
|
|
| 21436 |
|
| 21437 |
t.appendChild(edit_div);
|
| 21438 |
add_id_and_name(i, 'type_text');
|
| 21439 |
-
|
| 21440 |
//show table
|
| 21441 |
var adding_type = document.createElement("input");
|
| 21442 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -21809,7 +21870,7 @@ function type_recaptcha(i,w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 21809 |
|
| 21810 |
t.appendChild(edit_div);
|
| 21811 |
add_id_and_name(i, 'type_text');
|
| 21812 |
-
|
| 21813 |
element='img'; type='captcha';
|
| 21814 |
var adding_type = document.createElement("input");
|
| 21815 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -22140,7 +22201,8 @@ function type_captcha(i,w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 22140 |
|
| 22141 |
t.appendChild(edit_div);
|
| 22142 |
add_id_and_name(i, 'type_captcha');
|
| 22143 |
-
|
|
|
|
| 22144 |
element='img'; type='captcha';
|
| 22145 |
var adding_type = document.createElement("input");
|
| 22146 |
adding_type.setAttribute("type", "hidden");
|
|
@@ -22539,7 +22601,8 @@ function type_arithmetic_captcha(i,w_field_label, w_field_label_size, w_field_la
|
|
| 22539 |
|
| 22540 |
t.appendChild(edit_div);
|
| 22541 |
add_id_and_name(i, 'type_arithmetic_captcha');
|
| 22542 |
-
|
|
|
|
| 22543 |
var adding_type = document.createElement("input");
|
| 22544 |
adding_type.setAttribute("type", "hidden");
|
| 22545 |
adding_type.setAttribute("value", "type_arithmetic_captcha");
|
|
@@ -23146,7 +23209,7 @@ function type_mark_map(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 23146 |
edit_div.appendChild(edit_main_table);
|
| 23147 |
|
| 23148 |
t.appendChild(edit_div);
|
| 23149 |
-
|
| 23150 |
element='div';
|
| 23151 |
var adding_type = document.createElement("input");
|
| 23152 |
adding_type.setAttribute("type", "hidden");
|
| 756 |
}
|
| 757 |
}
|
| 758 |
|
| 759 |
+
function set_fieldtype(type){
|
| 760 |
+
var ObjectTypeField ={
|
| 761 |
+
type_text : 'Text Input -> Simple text',
|
| 762 |
+
type_password : 'Text Input -> Password',
|
| 763 |
+
type_textarea : 'Text Input -> Text area',
|
| 764 |
+
type_name : 'Text Input -> Name',
|
| 765 |
+
type_address : 'Text Input -> Address',
|
| 766 |
+
type_mark_map : 'Text Input -> Address(mark on map)',
|
| 767 |
+
type_submitter_mail : 'Text Input -> E-mail',
|
| 768 |
+
type_send_copy : 'Text Input -> Send copy to submitter',
|
| 769 |
+
type_phone : 'Text Input -> Phone',
|
| 770 |
+
type_number : 'Text Input -> Number',
|
| 771 |
+
type_hidden : 'Text Input -> Hidden field',
|
| 772 |
+
type_checkbox : 'Multiple Choice',
|
| 773 |
+
type_radio : 'Single Choice',
|
| 774 |
+
type_star_rating : 'Survey Tools -> Star Rating',
|
| 775 |
+
type_scale_rating : 'Survey Tools -> Scale Rating',
|
| 776 |
+
type_spinner : 'Survey Tools -> Spinner',
|
| 777 |
+
type_slider : 'Survey Tools -> Slider',
|
| 778 |
+
type_range : 'Survey Tools -> Range',
|
| 779 |
+
type_grading : 'Survey Tools -> Grading',
|
| 780 |
+
type_matrix : 'Survey Tools -> Matrix',
|
| 781 |
+
type_date_new : 'Time and Date -> Date (Single fileld with a picker)',
|
| 782 |
+
type_date_range : 'Time and Date -> Date range(Single filelds with a picker)',
|
| 783 |
+
type_date_fields : 'Time and Date -> Date (3 separate fields)',
|
| 784 |
+
type_time : 'Time and Date -> Time',
|
| 785 |
+
type_own_select : 'Select Box -> Custom Select',
|
| 786 |
+
type_country : 'Select Box -> Country List',
|
| 787 |
+
type_file_upload : 'File Upload',
|
| 788 |
+
type_map : 'Map',
|
| 789 |
+
type_paypal_price_new : 'Payment -> Amount (Price)',
|
| 790 |
+
type_paypal_select : 'Payment -> Select',
|
| 791 |
+
type_paypal_checkbox : 'Payment -> Checkbox',
|
| 792 |
+
type_paypal_radio : 'Payment -> Radio',
|
| 793 |
+
type_paypal_shipping : 'Payment -> Shipping',
|
| 794 |
+
type_paypal_total : 'Payment -> Total',
|
| 795 |
+
type_captcha : 'Captcha -> Simple Captcha',
|
| 796 |
+
type_arithmetic_captcha : 'Captcha -> Arithmetic Captcha',
|
| 797 |
+
type_recaptcha : 'Captcha -> Recaptcha',
|
| 798 |
+
type_submit_reset : 'Button -> Submit and Reset',
|
| 799 |
+
type_button : 'Button -> Custom'
|
| 800 |
+
}
|
| 801 |
+
jQuery("#edit_main_table tr:first").before( "<tr class='fm-field-label'><td>Field type</td><td>" + ObjectTypeField[type] + "</td></tr>" );
|
| 802 |
+
}
|
| 803 |
|
| 804 |
function refresh_id_name(i, type)
|
| 805 |
{
|
| 4870 |
edit_div.appendChild(edit_main_table);
|
| 4871 |
|
| 4872 |
t.appendChild(edit_div);
|
| 4873 |
+
set_fieldtype('type_submit_reset');
|
| 4874 |
|
| 4875 |
var adding_type = document.createElement("input");
|
| 4876 |
adding_type.setAttribute("type", "hidden");
|
| 5128 |
edit_div.appendChild(edit_main_table);
|
| 5129 |
|
| 5130 |
t.appendChild(edit_div);
|
| 5131 |
+
set_fieldtype("type_hidden");
|
| 5132 |
element='input'; type='hidden';
|
| 5133 |
var adding_type = document.createElement("input");
|
| 5134 |
adding_type.setAttribute("type", "hidden");
|
| 5470 |
edit_div.appendChild(edit_main_table);
|
| 5471 |
|
| 5472 |
t.appendChild(edit_div);
|
| 5473 |
+
set_fieldtype('type_button');
|
| 5474 |
//show table
|
| 5475 |
|
| 5476 |
element='button'; type='button';
|
| 5778 |
|
| 5779 |
t.appendChild(edit_div);
|
| 5780 |
add_id_and_name(i, 'type_text');
|
| 5781 |
+
set_fieldtype('type_send_copy');
|
| 5782 |
//show table
|
| 5783 |
|
| 5784 |
element='input'; type='checkbox';
|
| 6356 |
|
| 6357 |
t.appendChild(edit_div);
|
| 6358 |
add_id_and_name(i, 'type_text');
|
| 6359 |
+
set_fieldtype("type_text");
|
| 6360 |
//show table
|
| 6361 |
|
| 6362 |
element='input'; type='text';
|
| 6839 |
|
| 6840 |
t.appendChild(edit_div);
|
| 6841 |
add_id_and_name(i, 'type_text');
|
| 6842 |
+
set_fieldtype('type_number');
|
| 6843 |
//show table
|
| 6844 |
|
| 6845 |
element='input'; type='text';
|
| 7266 |
|
| 7267 |
t.appendChild(edit_div);
|
| 7268 |
add_id_and_name(i, 'type_text');
|
| 7269 |
+
set_fieldtype('type_password');
|
| 7270 |
//show table
|
| 7271 |
|
| 7272 |
element='input'; type='password';
|
| 7722 |
|
| 7723 |
t.appendChild(edit_div);
|
| 7724 |
add_id_and_name(i, 'type_text');
|
| 7725 |
+
set_fieldtype('type_textarea');
|
| 7726 |
//show table
|
| 7727 |
|
| 7728 |
element='textarea';
|
| 8145 |
|
| 8146 |
t.appendChild(edit_div);
|
| 8147 |
add_id_and_name(i, 'type_text');
|
| 8148 |
+
set_fieldtype('type_wdeditor');
|
| 8149 |
//show table
|
| 8150 |
|
| 8151 |
element='editor';
|
| 8566 |
|
| 8567 |
t.appendChild(edit_div);
|
| 8568 |
add_id_and_name(i, 'type_name');
|
| 8569 |
+
set_fieldtype('type_phone');
|
| 8570 |
//show table
|
| 8571 |
|
| 8572 |
var adding_type = document.createElement("input");
|
| 9265 |
|
| 9266 |
t.appendChild(edit_div);
|
| 9267 |
add_id_and_name(i, 'type_name');
|
| 9268 |
+
set_fieldtype('type_name');
|
| 9269 |
//show table
|
| 9270 |
|
| 9271 |
var adding_type = document.createElement("input");
|
| 10192 |
|
| 10193 |
t.appendChild(edit_div);
|
| 10194 |
add_id_and_name(i, 'type_address');
|
| 10195 |
+
set_fieldtype('type_address');
|
| 10196 |
|
| 10197 |
var adding_type = document.createElement("input");
|
| 10198 |
adding_type.setAttribute("type", "hidden");
|
| 10967 |
|
| 10968 |
t.appendChild(edit_div);
|
| 10969 |
add_id_and_name(i, 'type_text');
|
| 10970 |
+
set_fieldtype('type_submitter_mail');
|
| 10971 |
//show table
|
| 10972 |
|
| 10973 |
element='input'; type='text';
|
| 11834 |
|
| 11835 |
refresh_rowcol(i, 'checkbox');
|
| 11836 |
add_id_and_name(i, 'type_checkbox');
|
| 11837 |
+
set_fieldtype('type_checkbox');
|
| 11838 |
if(aaa)
|
| 11839 |
show_other_input(i);
|
| 11840 |
|
| 12535 |
|
| 12536 |
refresh_rowcol(i, 'radio');
|
| 12537 |
add_id_and_name(i, 'type_radio');
|
| 12538 |
+
set_fieldtype('type_radio');
|
| 12539 |
if(aaa)
|
| 12540 |
show_other_input(i);
|
| 12541 |
|
| 12884 |
|
| 12885 |
t.appendChild(edit_div);
|
| 12886 |
add_id_and_name(i, 'type_time');
|
| 12887 |
+
set_fieldtype('type_time');
|
| 12888 |
|
| 12889 |
//show table
|
| 12890 |
var adding_type = document.createElement("input");
|
| 14301 |
|
| 14302 |
t.appendChild(edit_div);
|
| 14303 |
add_id_and_name(i, 'type_text');
|
| 14304 |
+
set_fieldtype('type_date_new');
|
| 14305 |
|
| 14306 |
var adding_type = document.createElement("input");
|
| 14307 |
adding_type.setAttribute("type", "hidden");
|
| 15470 |
|
| 15471 |
t.appendChild(edit_div);
|
| 15472 |
add_id_and_name(i, 'type_range');
|
| 15473 |
+
set_fieldtype('type_date_range');
|
| 15474 |
|
| 15475 |
var adding_type = document.createElement("input");
|
| 15476 |
adding_type.setAttribute("type", "hidden");
|
| 16765 |
|
| 16766 |
t.appendChild(edit_div);
|
| 16767 |
add_id_and_name(i, 'type_date_fields');
|
| 16768 |
+
set_fieldtype('type_date_fields');
|
| 16769 |
+
|
| 16770 |
var adding_type = document.createElement("input");
|
| 16771 |
adding_type.setAttribute("type", "hidden");
|
| 16772 |
adding_type.setAttribute("value", "type_date_fields");
|
| 17459 |
|
| 17460 |
t.appendChild(edit_div);
|
| 17461 |
add_id_and_name(i, 'type_text');
|
| 17462 |
+
set_fieldtype('type_own_select');
|
| 17463 |
//show table
|
| 17464 |
var adding_type = document.createElement("input");
|
| 17465 |
adding_type.setAttribute("type", "hidden");
|
| 18087 |
edit_div.appendChild(edit_main_table);
|
| 18088 |
|
| 18089 |
t.appendChild(edit_div);
|
| 18090 |
+
set_fieldtype('type_star_rating');
|
| 18091 |
+
|
| 18092 |
var adding_type = document.createElement("input");
|
| 18093 |
adding_type.setAttribute("type", "hidden");
|
| 18094 |
adding_type.setAttribute("value", "type_star_rating");
|
| 18505 |
edit_div.appendChild(edit_main_table);
|
| 18506 |
|
| 18507 |
t.appendChild(edit_div);
|
| 18508 |
+
set_fieldtype('type_scale_rating');
|
| 18509 |
+
|
| 18510 |
var adding_type = document.createElement("input");
|
| 18511 |
adding_type.setAttribute("type", "hidden");
|
| 18512 |
adding_type.setAttribute("value", "type_scale_rating");
|
| 19066 |
|
| 19067 |
t.appendChild(edit_div);
|
| 19068 |
add_id_and_name(i, 'type_spinner');
|
| 19069 |
+
set_fieldtype('type_spinner');
|
| 19070 |
+
|
| 19071 |
var adding_type = document.createElement("input");
|
| 19072 |
adding_type.setAttribute("type", "hidden");
|
| 19073 |
adding_type.setAttribute("value", "type_spinner");
|
| 19506 |
|
| 19507 |
t.appendChild(edit_div);
|
| 19508 |
add_id_and_name(i, 'type_slider');
|
| 19509 |
+
set_fieldtype('type_slider');
|
| 19510 |
+
|
| 19511 |
var adding_type = document.createElement("input");
|
| 19512 |
adding_type.setAttribute("type", "hidden");
|
| 19513 |
adding_type.setAttribute("value", "type_slider");
|
| 20046 |
|
| 20047 |
t.appendChild(edit_div);
|
| 20048 |
add_id_and_name(i, 'type_range');
|
| 20049 |
+
set_fieldtype('type_range');
|
| 20050 |
|
| 20051 |
var adding_type = document.createElement("input");
|
| 20052 |
adding_type.setAttribute("type", "hidden");
|
| 20654 |
refresh_attr(i, 'type_grading');
|
| 20655 |
refresh_grading_items(i);
|
| 20656 |
add_id_and_name(i, 'type_grading');
|
| 20657 |
+
set_fieldtype('type_grading');
|
| 20658 |
}
|
| 20659 |
|
| 20660 |
function change_total(value,id)
|
| 21100 |
|
| 21101 |
edit_div.appendChild(edit_main_table);
|
| 21102 |
t.appendChild(edit_div);
|
| 21103 |
+
set_fieldtype('type_matrix');
|
| 21104 |
element='input';
|
| 21105 |
type='matrix';
|
| 21106 |
+
|
| 21107 |
var adding_type = document.createElement("input");
|
| 21108 |
adding_type.setAttribute("type", "hidden");
|
| 21109 |
adding_type.setAttribute("value", "type_matrix");
|
| 21497 |
|
| 21498 |
t.appendChild(edit_div);
|
| 21499 |
add_id_and_name(i, 'type_text');
|
| 21500 |
+
set_fieldtype('type_country');
|
| 21501 |
//show table
|
| 21502 |
var adding_type = document.createElement("input");
|
| 21503 |
adding_type.setAttribute("type", "hidden");
|
| 21870 |
|
| 21871 |
t.appendChild(edit_div);
|
| 21872 |
add_id_and_name(i, 'type_text');
|
| 21873 |
+
set_fieldtype('type_recaptcha');
|
| 21874 |
element='img'; type='captcha';
|
| 21875 |
var adding_type = document.createElement("input");
|
| 21876 |
adding_type.setAttribute("type", "hidden");
|
| 22201 |
|
| 22202 |
t.appendChild(edit_div);
|
| 22203 |
add_id_and_name(i, 'type_captcha');
|
| 22204 |
+
set_fieldtype('type_captcha');
|
| 22205 |
+
|
| 22206 |
element='img'; type='captcha';
|
| 22207 |
var adding_type = document.createElement("input");
|
| 22208 |
adding_type.setAttribute("type", "hidden");
|
| 22601 |
|
| 22602 |
t.appendChild(edit_div);
|
| 22603 |
add_id_and_name(i, 'type_arithmetic_captcha');
|
| 22604 |
+
set_fieldtype('type_arithmetic_captcha');
|
| 22605 |
+
|
| 22606 |
var adding_type = document.createElement("input");
|
| 22607 |
adding_type.setAttribute("type", "hidden");
|
| 22608 |
adding_type.setAttribute("value", "type_arithmetic_captcha");
|
| 23209 |
edit_div.appendChild(edit_main_table);
|
| 23210 |
|
| 23211 |
t.appendChild(edit_div);
|
| 23212 |
+
set_fieldtype('type_mark_map');
|
| 23213 |
element='div';
|
| 23214 |
var adding_type = document.createElement("input");
|
| 23215 |
adding_type.setAttribute("type", "hidden");
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
|
|
| 4 |
Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.6
|
| 7 |
-
Stable tag: 1.9.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -315,6 +315,11 @@ Email field should be used since it verifies that an entry format fulfills examp
|
|
| 315 |
|
| 316 |
== Changelog ==
|
| 317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
= 1.9.15 =
|
| 319 |
Added: Password Confirmation field
|
| 320 |
|
| 4 |
Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.6
|
| 7 |
+
Stable tag: 1.9.16
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 315 |
|
| 316 |
== Changelog ==
|
| 317 |
|
| 318 |
+
= 1.9.16 =
|
| 319 |
+
Fixed: Bug with Hidden field in custom text in Email
|
| 320 |
+
Fixed: Bug on email verification custom post
|
| 321 |
+
Added: Field type in field edit page
|
| 322 |
+
|
| 323 |
= 1.9.15 =
|
| 324 |
Added: Password Confirmation field
|
| 325 |
|
