Version Description
Added: Password Confirmation field
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.9.15 |
Comparing to | |
See all releases |
Code changes from version 1.9.14 to 1.9.15
- admin/models/FMModelManage_fm.php +24 -4
- form-maker.php +5 -6
- frontend/views/FMViewForm_maker.php +50 -2
- js/formmaker_div_free.js +183 -34
- readme.txt +4 -1
admin/models/FMModelManage_fm.php
CHANGED
@@ -268,7 +268,10 @@ class FMModelManage_fm {
|
|
268 |
}
|
269 |
case 'type_password': {
|
270 |
$params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class');
|
271 |
-
|
|
|
|
|
|
|
272 |
foreach ($params_names as $params_name) {
|
273 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
274 |
$param[$params_name] = $temp[0];
|
@@ -281,9 +284,26 @@ class FMModelManage_fm {
|
|
281 |
$param['attributes'] = $param['attributes'] . ' add_' . $attr;
|
282 |
}
|
283 |
}
|
284 |
-
|
285 |
-
|
286 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
break;
|
288 |
}
|
289 |
case 'type_textarea': {
|
268 |
}
|
269 |
case 'type_password': {
|
270 |
$params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class');
|
271 |
+
$temp = $params;
|
272 |
+
if(strpos($temp, 'w_verification') > -1)
|
273 |
+
$params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class', 'w_verification', 'w_verification_label');
|
274 |
+
|
275 |
foreach ($params_names as $params_name) {
|
276 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
277 |
$param[$params_name] = $temp[0];
|
284 |
$param['attributes'] = $param['attributes'] . ' add_' . $attr;
|
285 |
}
|
286 |
}
|
287 |
+
|
288 |
+
$param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
|
289 |
+
$required_sym = ($param['w_required'] == "yes" ? " *" : "");
|
290 |
+
|
291 |
+
if(isset($param['w_verification']) && $param['w_verification'] == "yes"){
|
292 |
+
$display_label_confirm = $param['w_field_label_pos'];
|
293 |
+
$display_element_confirm = $param['w_field_label_pos'];
|
294 |
+
}
|
295 |
+
else{
|
296 |
+
$display_label_confirm = "none";
|
297 |
+
$display_element_confirm = "none";
|
298 |
+
}
|
299 |
+
|
300 |
+
$param['w_verification'] = isset($param['w_verification']) ? $param['w_verification'] : "no";
|
301 |
+
$param['w_verification_label'] = isset($param['w_verification_label']) ? $param['w_verification_label'] : "Password confirmation:";
|
302 |
+
|
303 |
+
$confirm_password ='<br><div align="left" id="'.$id.'_1_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$display_label_confirm.'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_1_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$param['w_verification_label'].'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_1_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$display_element_confirm.';"><input type="hidden" value="'.$param['w_verification'].'" name="'.$id.'_verification_id_temp" id="'.$id.'_verification_id_temp"><input type="text" class="input_deactive" id="'.$id.'_1_elementform_id_temp" name="'.$id.'_1_elementform_id_temp" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div>';
|
304 |
+
|
305 |
+
|
306 |
+
$rep ='<div id="wdform_field'.$id.'" type="type_password" class="wdform_field" style="display: table-cell;">'.$arrows.'<div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_password" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="password" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div>'.$confirm_password.'</div>';
|
307 |
break;
|
308 |
}
|
309 |
case 'type_textarea': {
|
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');
|
@@ -374,7 +374,9 @@ function form_maker_manage_scripts() {
|
|
374 |
wp_enqueue_script('jquery-ui-datepicker');
|
375 |
|
376 |
// wp_enqueue_script('mootools', WD_FM_URL . '/js/mootools.js', array(), '1.12');
|
377 |
-
|
|
|
|
|
378 |
wp_enqueue_script('gmap_form', WD_FM_URL . '/js/if_gmap_back_end.js');
|
379 |
|
380 |
wp_enqueue_script('form_maker_admin', WD_FM_URL . '/js/form_maker_admin.js', array(), get_option("wd_form_maker_version"));
|
@@ -457,8 +459,6 @@ function form_maker_generate_action() {
|
|
457 |
add_filter('wp_head', 'form_maker_generate_action', 10000);
|
458 |
|
459 |
function form_maker_front_end_scripts() {
|
460 |
-
$fm_settings = get_option('fm_settings');
|
461 |
-
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
462 |
// global $wp_scripts;
|
463 |
// if (isset($wp_scripts->registered['jquery'])) {
|
464 |
// $jquery = $wp_scripts->registered['jquery'];
|
@@ -478,7 +478,6 @@ function form_maker_front_end_scripts() {
|
|
478 |
wp_enqueue_style('jquery-ui-spinner', WD_FM_URL . '/css/jquery-ui-spinner.css');
|
479 |
|
480 |
// wp_enqueue_script('mootools', WD_FM_URL . '/js/mootools.js', array(), '1.12');
|
481 |
-
wp_enqueue_script('gmap_form_api', 'https://maps.google.com/maps/api/js?v=3.exp&key='.$map_key);
|
482 |
wp_enqueue_script('gmap_form', WD_FM_URL . '/js/if_gmap_front_end.js');
|
483 |
wp_enqueue_script('jelly.min', WD_FM_URL . '/js/jelly.min.js');
|
484 |
wp_enqueue_script('file-upload', WD_FM_URL . '/js/file-upload.js');
|
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.15
|
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.15';
|
276 |
global $wpdb;
|
277 |
if (!$version) {
|
278 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
374 |
wp_enqueue_script('jquery-ui-datepicker');
|
375 |
|
376 |
// wp_enqueue_script('mootools', WD_FM_URL . '/js/mootools.js', array(), '1.12');
|
377 |
+
if($_GET['page'] == 'manage_fm'){
|
378 |
+
wp_enqueue_script('gmap_form_api', 'https://maps.google.com/maps/api/js?v=3.exp&key='.$map_key);
|
379 |
+
}
|
380 |
wp_enqueue_script('gmap_form', WD_FM_URL . '/js/if_gmap_back_end.js');
|
381 |
|
382 |
wp_enqueue_script('form_maker_admin', WD_FM_URL . '/js/form_maker_admin.js', array(), get_option("wd_form_maker_version"));
|
459 |
add_filter('wp_head', 'form_maker_generate_action', 10000);
|
460 |
|
461 |
function form_maker_front_end_scripts() {
|
|
|
|
|
462 |
// global $wp_scripts;
|
463 |
// if (isset($wp_scripts->registered['jquery'])) {
|
464 |
// $jquery = $wp_scripts->registered['jquery'];
|
478 |
wp_enqueue_style('jquery-ui-spinner', WD_FM_URL . '/css/jquery-ui-spinner.css');
|
479 |
|
480 |
// wp_enqueue_script('mootools', WD_FM_URL . '/js/mootools.js', array(), '1.12');
|
|
|
481 |
wp_enqueue_script('gmap_form', WD_FM_URL . '/js/if_gmap_front_end.js');
|
482 |
wp_enqueue_script('jelly.min', WD_FM_URL . '/js/jelly.min.js');
|
483 |
wp_enqueue_script('file-upload', WD_FM_URL . '/js/file-upload.js');
|
frontend/views/FMViewForm_maker.php
CHANGED
@@ -1001,6 +1001,8 @@ class FMViewForm_maker {
|
|
1001 |
else {
|
1002 |
$form = $row->form_front;
|
1003 |
}
|
|
|
|
|
1004 |
foreach($id1s as $id1s_key => $id1) {
|
1005 |
$label=$labels[$id1s_key];
|
1006 |
$type=$types[$id1s_key];
|
@@ -1220,6 +1222,9 @@ class FMViewForm_maker {
|
|
1220 |
case 'type_password': {
|
1221 |
$params_names=array('w_field_label_size','w_field_label_pos','w_size','w_required','w_unique','w_class');
|
1222 |
$temp=$params;
|
|
|
|
|
|
|
1223 |
foreach($params_names as $params_name ) {
|
1224 |
$temp=explode('*:*'.$params_name.'*:*',$temp);
|
1225 |
$param[$params_name] = $temp[0];
|
@@ -1244,6 +1249,15 @@ class FMViewForm_maker {
|
|
1244 |
}
|
1245 |
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><input type="password" id="wdform_'.$id1.'_element'.$form_id.'" name="wdform_'.$id1.'_element'.$form_id.'" style="width: 100%;" '.$param['attributes'].'></div></div>';
|
1246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1247 |
if($required) {
|
1248 |
$check_js.='
|
1249 |
if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
|
@@ -1261,6 +1275,25 @@ class FMViewForm_maker {
|
|
1261 |
}
|
1262 |
';
|
1263 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1264 |
break;
|
1265 |
}
|
1266 |
|
@@ -1772,7 +1805,7 @@ class FMViewForm_maker {
|
|
1772 |
if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
|
1773 |
{
|
1774 |
|
1775 |
-
if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()!="" && jQuery("#wdform_'.$id1.'_element'.$form_id.'").val().search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 )
|
1776 |
{
|
1777 |
alert("' . addslashes(__("This is not a valid email address.", 'form_maker')) . '");
|
1778 |
old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
|
@@ -1787,7 +1820,7 @@ class FMViewForm_maker {
|
|
1787 |
$check_js.='
|
1788 |
if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
|
1789 |
{
|
1790 |
-
if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val() !== jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").val())
|
1791 |
{
|
1792 |
alert("' .addslashes(__('The Confirmation Email must match your Email Address', 'form_maker')) . '");
|
1793 |
jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
|
@@ -3153,6 +3186,14 @@ class FMViewForm_maker {
|
|
3153 |
}
|
3154 |
|
3155 |
case 'type_mark_map': {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3156 |
$params_names=array('w_field_label_size','w_field_label_pos','w_center_x','w_center_y','w_long','w_lat','w_zoom','w_width','w_height','w_info','w_class');
|
3157 |
$temp=$params;
|
3158 |
foreach($params_names as $params_name ) {
|
@@ -3181,6 +3222,13 @@ class FMViewForm_maker {
|
|
3181 |
}
|
3182 |
|
3183 |
case 'type_map': {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3184 |
$params_names=array('w_center_x','w_center_y','w_long','w_lat','w_zoom','w_width','w_height','w_info','w_class');
|
3185 |
$temp=$params;
|
3186 |
|
1001 |
else {
|
1002 |
$form = $row->form_front;
|
1003 |
}
|
1004 |
+
$GLOBALS['map_include'] = false;
|
1005 |
+
|
1006 |
foreach($id1s as $id1s_key => $id1) {
|
1007 |
$label=$labels[$id1s_key];
|
1008 |
$type=$types[$id1s_key];
|
1222 |
case 'type_password': {
|
1223 |
$params_names=array('w_field_label_size','w_field_label_pos','w_size','w_required','w_unique','w_class');
|
1224 |
$temp=$params;
|
1225 |
+
|
1226 |
+
if(strpos($temp, 'w_verification') > -1)
|
1227 |
+
$params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class', 'w_verification', 'w_verification_label');
|
1228 |
foreach($params_names as $params_name ) {
|
1229 |
$temp=explode('*:*'.$params_name.'*:*',$temp);
|
1230 |
$param[$params_name] = $temp[0];
|
1249 |
}
|
1250 |
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><input type="password" id="wdform_'.$id1.'_element'.$form_id.'" name="wdform_'.$id1.'_element'.$form_id.'" style="width: 100%;" '.$param['attributes'].'></div></div>';
|
1251 |
|
1252 |
+
if(isset($param['w_verification']) && $param['w_verification'] == "yes"){
|
1253 |
+
$rep .='<div><div type="type_password" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$param['w_verification_label'].'</span>';
|
1254 |
+
if($required) {
|
1255 |
+
$rep.='<span class="wdform-required">'.$required_sym.'</span>';
|
1256 |
+
}
|
1257 |
+
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><input type="password" id="wdform_'.$id1.'_1_element'.$form_id.'" name="wdform_'.$id1.'_1_element'.$form_id.'" style="width: 100%;" '.$param['attributes'].'></div></div></div>';
|
1258 |
+
}
|
1259 |
+
|
1260 |
+
|
1261 |
if($required) {
|
1262 |
$check_js.='
|
1263 |
if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
|
1275 |
}
|
1276 |
';
|
1277 |
}
|
1278 |
+
|
1279 |
+
if(isset($param['w_verification']) && $param['w_verification'] == "yes") {
|
1280 |
+
$check_js.='
|
1281 |
+
if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
|
1282 |
+
{
|
1283 |
+
if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val() !== jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").val())
|
1284 |
+
{
|
1285 |
+
alert("' .addslashes(__('Password confirmation does not match the password', 'form_maker')) . '");
|
1286 |
+
jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
|
1287 |
+
old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
|
1288 |
+
x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
|
1289 |
+
jQuery("#wdform_'.$id1.'_element'.$form_id.'").focus();
|
1290 |
+
jQuery("#wdform_'.$id1.'_element'.$form_id.'").change(function() { if( jQuery(this).val()!="" ) jQuery(this).removeClass("form-error"); else jQuery(this).addClass("form-error");});
|
1291 |
+
return false;
|
1292 |
+
}
|
1293 |
+
}
|
1294 |
+
';
|
1295 |
+
}
|
1296 |
+
|
1297 |
break;
|
1298 |
}
|
1299 |
|
1805 |
if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
|
1806 |
{
|
1807 |
|
1808 |
+
if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()!="" && jQuery("#wdform_'.$id1.'_element'.$form_id.'").val().search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 && jQuery("#wdform_'.$id1.'_element'.$form_id.'").attr("title") != jQuery("#wdform_'.$id1.'_element'.$form_id.'").val())
|
1809 |
{
|
1810 |
alert("' . addslashes(__("This is not a valid email address.", 'form_maker')) . '");
|
1811 |
old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
|
1820 |
$check_js.='
|
1821 |
if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
|
1822 |
{
|
1823 |
+
if((jQuery("#wdform_'.$id1.'_element'.$form_id.'").val() !== jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").val() && jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").attr("title") != jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").val()) ||(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val() !=jQuery("#wdform_'.$id1.'_element'.$form_id.'").attr("title") && jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").attr("title") == jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").val()))
|
1824 |
{
|
1825 |
alert("' .addslashes(__('The Confirmation Email must match your Email Address', 'form_maker')) . '");
|
1826 |
jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
|
3186 |
}
|
3187 |
|
3188 |
case 'type_mark_map': {
|
3189 |
+
|
3190 |
+
if($GLOBALS['map_include'] === false){
|
3191 |
+
$fm_settings = get_option('fm_settings');
|
3192 |
+
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
3193 |
+
wp_enqueue_script('gmap_form_api', 'https://maps.google.com/maps/api/js?v=3.exp&key='.$map_key);
|
3194 |
+
$GLOBALS['map_include'] = true;
|
3195 |
+
}
|
3196 |
+
|
3197 |
$params_names=array('w_field_label_size','w_field_label_pos','w_center_x','w_center_y','w_long','w_lat','w_zoom','w_width','w_height','w_info','w_class');
|
3198 |
$temp=$params;
|
3199 |
foreach($params_names as $params_name ) {
|
3222 |
}
|
3223 |
|
3224 |
case 'type_map': {
|
3225 |
+
|
3226 |
+
if($GLOBALS['map_include'] === false){
|
3227 |
+
$fm_settings = get_option('fm_settings');
|
3228 |
+
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
3229 |
+
wp_enqueue_script('gmap_form_api', 'https://maps.google.com/maps/api/js?v=3.exp&key='.$map_key);
|
3230 |
+
$GLOBALS['map_include'] = true;
|
3231 |
+
}
|
3232 |
$params_names=array('w_center_x','w_center_y','w_long','w_lat','w_zoom','w_width','w_height','w_info','w_class');
|
3233 |
$temp=$params;
|
3234 |
|
js/formmaker_div_free.js
CHANGED
@@ -1109,11 +1109,13 @@ function set_required(id, type)
|
|
1109 |
{
|
1110 |
document.getElementById(id+"form_id_temp").setAttribute("value", "no");
|
1111 |
document.getElementById(id+"_elementform_id_temp").innerHTML="";
|
|
|
1112 |
}
|
1113 |
else
|
1114 |
{
|
1115 |
document.getElementById(id+"form_id_temp").setAttribute("value", "yes")
|
1116 |
document.getElementById(id+"_elementform_id_temp").innerHTML=" *";
|
|
|
1117 |
}
|
1118 |
}
|
1119 |
|
@@ -2039,6 +2041,24 @@ function verification_mail(id){
|
|
2039 |
}
|
2040 |
}
|
2041 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2042 |
function change_w_label(id, w)
|
2043 |
{
|
2044 |
if(document.getElementById(id))
|
@@ -2645,35 +2665,39 @@ function check_year1(e, id)
|
|
2645 |
|
2646 |
function label_top(num)
|
2647 |
{
|
2648 |
-
|
2649 |
-
|
2650 |
-
|
2651 |
-
|
2652 |
-
|
2653 |
-
|
2654 |
-
|
2655 |
-
|
2656 |
-
|
2657 |
-
|
|
|
|
|
|
|
|
|
2658 |
}
|
2659 |
-
}
|
2660 |
|
2661 |
}
|
2662 |
|
2663 |
function label_left(num)
|
2664 |
{
|
2665 |
-
|
2666 |
-
|
2667 |
-
|
2668 |
-
if(document.getElementById(num+'
|
2669 |
-
document.getElementById(num+'
|
2670 |
-
|
2671 |
-
|
2672 |
-
|
2673 |
-
|
2674 |
-
|
|
|
|
|
2675 |
}
|
2676 |
-
}
|
2677 |
|
2678 |
}
|
2679 |
|
@@ -6868,7 +6892,7 @@ function type_number(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
6868 |
refresh_attr(i, 'type_text');
|
6869 |
}
|
6870 |
|
6871 |
-
function type_password(i, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_required, w_unique, w_class, w_attr_name, w_attr_value) {
|
6872 |
|
6873 |
document.getElementById("element_type").value="type_password";
|
6874 |
delete_last_child();
|
@@ -6889,6 +6913,11 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
6889 |
var edit_main_tr6 = document.createElement('tr');
|
6890 |
var edit_main_tr7 = document.createElement('tr');
|
6891 |
var edit_main_tr8 = document.createElement('tr');
|
|
|
|
|
|
|
|
|
|
|
6892 |
var edit_main_td1 = document.createElement('td');
|
6893 |
var edit_main_td1_1 = document.createElement('td');
|
6894 |
var edit_main_td2 = document.createElement('td');
|
@@ -6905,7 +6934,11 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
6905 |
var edit_main_td7_1 = document.createElement('td');
|
6906 |
var edit_main_td8 = document.createElement('td');
|
6907 |
var edit_main_td8_1 = document.createElement('td');
|
6908 |
-
|
|
|
|
|
|
|
|
|
6909 |
var el_label_label = document.createElement('label');
|
6910 |
el_label_label.setAttribute("class", "fm-field-label");
|
6911 |
el_label_label.setAttribute("for", "edit_for_label");
|
@@ -6915,9 +6948,35 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
6915 |
el_label_textarea.setAttribute("id", "edit_for_label");
|
6916 |
el_label_textarea.setAttribute("rows", "4");
|
6917 |
|
6918 |
-
el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value)");
|
6919 |
el_label_textarea.innerHTML = w_field_label;
|
6920 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6921 |
var el_label_size_label = document.createElement('label');
|
6922 |
el_label_size_label.setAttribute("class", "fm-field-label");
|
6923 |
el_label_size_label.setAttribute("for", "edit_for_label_size");
|
@@ -6928,7 +6987,7 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
6928 |
el_label_size.setAttribute("type", "text");
|
6929 |
el_label_size.setAttribute("value", w_field_label_size);
|
6930 |
el_label_size.setAttribute("onKeyPress", "return check_isnum(event)");
|
6931 |
-
el_label_size.setAttribute("onKeyUp", "change_w_style('"+i+"_label_sectionform_id_temp', this.value)");
|
6932 |
|
6933 |
|
6934 |
var el_label_position_label = document.createElement('label');
|
@@ -6970,7 +7029,7 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
6970 |
el_size.setAttribute("type", "text");
|
6971 |
el_size.setAttribute("value", w_size);
|
6972 |
el_size.setAttribute("onKeyPress", "return check_isnum(event)");
|
6973 |
-
el_size.setAttribute("onKeyUp", "change_w_style('"+i+"_elementform_id_temp', this.value)");
|
6974 |
|
6975 |
var el_required_label = document.createElement('label');
|
6976 |
el_required_label.setAttribute("class", "fm-field-label");
|
@@ -6980,7 +7039,7 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
6980 |
var el_required = document.createElement('input');
|
6981 |
el_required.setAttribute("id", "el_required");
|
6982 |
el_required.setAttribute("type", "checkbox");
|
6983 |
-
el_required.setAttribute("onclick", "set_required('"+i+"_required')");
|
6984 |
if(w_required=="yes")
|
6985 |
el_required.setAttribute("checked", "checked");
|
6986 |
|
@@ -7115,6 +7174,11 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
7115 |
edit_main_td7.appendChild(el_unique_label);
|
7116 |
edit_main_td7_1.appendChild(el_unique);
|
7117 |
|
|
|
|
|
|
|
|
|
|
|
7118 |
|
7119 |
edit_main_td6.appendChild(el_attr_label);
|
7120 |
edit_main_td6.appendChild(el_attr_add);
|
@@ -7138,8 +7202,15 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
7138 |
edit_main_tr6.appendChild(edit_main_td6);
|
7139 |
edit_main_tr7.appendChild(edit_main_td7);
|
7140 |
edit_main_tr7.appendChild(edit_main_td7_1);
|
|
|
|
|
|
|
|
|
|
|
7141 |
edit_main_table.appendChild(edit_main_tr1);
|
7142 |
edit_main_table.appendChild(edit_main_tr8);
|
|
|
|
|
7143 |
edit_main_table.appendChild(edit_main_tr2);
|
7144 |
edit_main_table.appendChild(edit_main_tr3);
|
7145 |
edit_main_table.appendChild(edit_main_tr4);
|
@@ -7177,6 +7248,61 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
7177 |
adding.setAttribute("name", i+"_elementform_id_temp");
|
7178 |
adding.style.cssText = "width:"+w_size+"px;";
|
7179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7180 |
|
7181 |
var div = document.createElement('div');
|
7182 |
div.setAttribute("id", "main_div");
|
@@ -7209,16 +7335,22 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
7209 |
if(w_required=="yes")
|
7210 |
required.innerHTML = " *";
|
7211 |
var main_td = document.getElementById('show_table');
|
7212 |
-
|
|
|
7213 |
|
7214 |
div_label.appendChild(label);
|
7215 |
div_label.appendChild(required);
|
7216 |
div_element.appendChild(adding_type);
|
7217 |
div_element.appendChild(adding_required);
|
7218 |
div_element.appendChild(adding_unique);
|
|
|
7219 |
div_element.appendChild(adding);
|
7220 |
div_field.appendChild(div_label);
|
7221 |
div_field.appendChild(div_element);
|
|
|
|
|
|
|
|
|
7222 |
|
7223 |
div.appendChild(div_field);
|
7224 |
main_td.appendChild(div);
|
@@ -24830,7 +24962,7 @@ function go_to_type_password(new_id)
|
|
24830 |
{
|
24831 |
w_attr_name=[];
|
24832 |
w_attr_value=[];
|
24833 |
-
type_password(new_id,'Password:', '100', 'left', '200', 'no', 'no', 'wdform_input',w_attr_name, w_attr_value);
|
24834 |
}
|
24835 |
|
24836 |
function go_to_type_textarea(new_id)
|
@@ -27012,7 +27144,7 @@ function add(key, after_edit, wdid)
|
|
27012 |
wdform_field.appendChild(add1);
|
27013 |
wdform_field.appendChild(add2);
|
27014 |
|
27015 |
-
if(type=="type_submitter_mail"){
|
27016 |
var br_submitter_mail = document.createElement('br');
|
27017 |
var add1_1 = document.getElementById(i+'_1_label_sectionform_id_temp');
|
27018 |
var add2_2 = document.getElementById(i+'_1_element_sectionform_id_temp');
|
@@ -27214,7 +27346,7 @@ function add(key, after_edit, wdid)
|
|
27214 |
wdform_field.appendChild(add1);
|
27215 |
wdform_field.appendChild(add2);
|
27216 |
|
27217 |
-
if(type=="type_submitter_mail"){
|
27218 |
var br_submitter_mail = document.createElement('br');
|
27219 |
var add1_1 = document.getElementById(i+'_1_label_sectionform_id_temp');
|
27220 |
var add2_2 = document.getElementById(i+'_1_element_sectionform_id_temp');
|
@@ -27447,10 +27579,15 @@ function edit(id)
|
|
27447 |
}
|
27448 |
case 'type_password':
|
27449 |
{
|
|
|
|
|
|
|
|
|
|
|
27450 |
atrs=return_attributes(id+'_elementform_id_temp');
|
27451 |
w_attr_name=atrs[0];
|
27452 |
w_attr_value=atrs[1];
|
27453 |
-
type_password(id, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_required, w_unique, w_class, w_attr_name, w_attr_value); break;
|
27454 |
}
|
27455 |
case 'type_textarea':
|
27456 |
{
|
@@ -28368,10 +28505,15 @@ function duplicate(id) {
|
|
28368 |
}
|
28369 |
case 'type_password':
|
28370 |
{
|
|
|
|
|
|
|
|
|
|
|
28371 |
atrs=return_attributes(id+'_elementform_id_temp');
|
28372 |
w_attr_name=atrs[0];
|
28373 |
w_attr_value=atrs[1];
|
28374 |
-
type_password(gen, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_required, w_unique, w_class, w_attr_name, w_attr_value); break;
|
28375 |
}
|
28376 |
case 'type_textarea':
|
28377 |
{
|
@@ -29237,6 +29379,11 @@ function gen_form_fields()
|
|
29237 |
}
|
29238 |
case 'type_password':
|
29239 |
{
|
|
|
|
|
|
|
|
|
|
|
29240 |
atrs=return_attributes(id+'_elementform_id_temp');
|
29241 |
w_attr_name=atrs[0];
|
29242 |
w_attr_value=atrs[1];
|
@@ -29249,6 +29396,8 @@ function gen_form_fields()
|
|
29249 |
form_fields+=w_required+"*:*w_required*:*";
|
29250 |
form_fields+=w_unique+"*:*w_unique*:*";
|
29251 |
form_fields+=w_class+"*:*w_class*:*";
|
|
|
|
|
29252 |
|
29253 |
for(j=0; j<w_attr_name.length; j++)
|
29254 |
{
|
1109 |
{
|
1110 |
document.getElementById(id+"form_id_temp").setAttribute("value", "no");
|
1111 |
document.getElementById(id+"_elementform_id_temp").innerHTML="";
|
1112 |
+
document.getElementById(type+"_elementform_id_temp").innerHTML="";
|
1113 |
}
|
1114 |
else
|
1115 |
{
|
1116 |
document.getElementById(id+"form_id_temp").setAttribute("value", "yes")
|
1117 |
document.getElementById(id+"_elementform_id_temp").innerHTML=" *";
|
1118 |
+
document.getElementById(type+"_elementform_id_temp").innerHTML=" *";
|
1119 |
}
|
1120 |
}
|
1121 |
|
2041 |
}
|
2042 |
}
|
2043 |
|
2044 |
+
function verification_password(id){
|
2045 |
+
if(document.getElementById("el_verification_password").checked){
|
2046 |
+
document.getElementById('confirm_validation_label').style.display = "table-row";
|
2047 |
+
document.getElementById(id + "_verification_id_temp").value = "yes";
|
2048 |
+
document.getElementById(id + "_1_label_sectionform_id_temp").style.display = document.getElementById(id + "_label_sectionform_id_temp").style.display;
|
2049 |
+
document.getElementById(id + "_1_element_sectionform_id_temp").style.display = document.getElementById(id + "_element_sectionform_id_temp").style.display;
|
2050 |
+
|
2051 |
+
}
|
2052 |
+
else{
|
2053 |
+
document.getElementById('confirm_validation_label').style.display = "none";
|
2054 |
+
document.getElementById(id + "_verification_id_temp").value = "no";
|
2055 |
+
document.getElementById(id + "_1_label_sectionform_id_temp").style.display = "none";
|
2056 |
+
document.getElementById(id + "_1_element_sectionform_id_temp").style.display = "none";
|
2057 |
+
}
|
2058 |
+
|
2059 |
+
}
|
2060 |
+
|
2061 |
+
|
2062 |
function change_w_label(id, w)
|
2063 |
{
|
2064 |
if(document.getElementById(id))
|
2665 |
|
2666 |
function label_top(num)
|
2667 |
{
|
2668 |
+
|
2669 |
+
|
2670 |
+
document.getElementById(num+'_label_sectionform_id_temp').style.display="block";
|
2671 |
+
document.getElementById(num+'_element_sectionform_id_temp').style.display="block";
|
2672 |
+
|
2673 |
+
if(document.getElementById(num+'_1_label_sectionform_id_temp')){
|
2674 |
+
if(document.getElementById(num+'_verification_id_temp').value == "yes"){
|
2675 |
+
document.getElementById(num+'_1_label_sectionform_id_temp').style.display=document.getElementById(num+'_label_sectionform_id_temp').style.display;
|
2676 |
+
document.getElementById(num+'_1_element_sectionform_id_temp').style.display=document.getElementById(num+'_element_sectionform_id_temp').style.display;
|
2677 |
+
}
|
2678 |
+
else{
|
2679 |
+
document.getElementById(num+'_1_label_sectionform_id_temp').style.display="none";
|
2680 |
+
document.getElementById(num+'_1_element_sectionform_id_temp').style.display="none";
|
2681 |
+
}
|
2682 |
}
|
|
|
2683 |
|
2684 |
}
|
2685 |
|
2686 |
function label_left(num)
|
2687 |
{
|
2688 |
+
|
2689 |
+
document.getElementById(num+'_label_sectionform_id_temp').style.display="table-cell";
|
2690 |
+
document.getElementById(num+'_element_sectionform_id_temp').style.display="table-cell";
|
2691 |
+
if(document.getElementById(num+'_1_label_sectionform_id_temp')){
|
2692 |
+
if(document.getElementById(num+'_verification_id_temp').value == "yes"){
|
2693 |
+
document.getElementById(num+'_1_label_sectionform_id_temp').style.display=document.getElementById(num+'_label_sectionform_id_temp').style.display;
|
2694 |
+
document.getElementById(num+'_1_element_sectionform_id_temp').style.display=document.getElementById(num+'_element_sectionform_id_temp').style.display;
|
2695 |
+
}
|
2696 |
+
else{
|
2697 |
+
document.getElementById(num+'_1_label_sectionform_id_temp').style.display="none";
|
2698 |
+
document.getElementById(num+'_1_element_sectionform_id_temp').style.display="none";
|
2699 |
+
}
|
2700 |
}
|
|
|
2701 |
|
2702 |
}
|
2703 |
|
6892 |
refresh_attr(i, 'type_text');
|
6893 |
}
|
6894 |
|
6895 |
+
function type_password(i, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_required, w_unique, w_class, w_verification, w_verification_label, w_attr_name, w_attr_value) {
|
6896 |
|
6897 |
document.getElementById("element_type").value="type_password";
|
6898 |
delete_last_child();
|
6913 |
var edit_main_tr6 = document.createElement('tr');
|
6914 |
var edit_main_tr7 = document.createElement('tr');
|
6915 |
var edit_main_tr8 = document.createElement('tr');
|
6916 |
+
var edit_main_tr9 = document.createElement('tr');
|
6917 |
+
var display_confirm = w_verification == "yes" ? "table-row" : "none";
|
6918 |
+
var edit_main_tr10 = document.createElement('tr');
|
6919 |
+
edit_main_tr10.setAttribute("id", "confirm_validation_label");
|
6920 |
+
edit_main_tr10.style.display=display_confirm;
|
6921 |
var edit_main_td1 = document.createElement('td');
|
6922 |
var edit_main_td1_1 = document.createElement('td');
|
6923 |
var edit_main_td2 = document.createElement('td');
|
6934 |
var edit_main_td7_1 = document.createElement('td');
|
6935 |
var edit_main_td8 = document.createElement('td');
|
6936 |
var edit_main_td8_1 = document.createElement('td');
|
6937 |
+
var edit_main_td10 = document.createElement('td');
|
6938 |
+
var edit_main_td10_1 = document.createElement('td');
|
6939 |
+
var edit_main_td9 = document.createElement('td');
|
6940 |
+
var edit_main_td9_1 = document.createElement('td');
|
6941 |
+
|
6942 |
var el_label_label = document.createElement('label');
|
6943 |
el_label_label.setAttribute("class", "fm-field-label");
|
6944 |
el_label_label.setAttribute("for", "edit_for_label");
|
6948 |
el_label_textarea.setAttribute("id", "edit_for_label");
|
6949 |
el_label_textarea.setAttribute("rows", "4");
|
6950 |
|
6951 |
+
el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value), '"+i+"_1_element_labelform_id_temp'");
|
6952 |
el_label_textarea.innerHTML = w_field_label;
|
6953 |
|
6954 |
+
var el_password_confirm_label = document.createElement('label');
|
6955 |
+
el_password_confirm_label.setAttribute("class", "fm-field-label");
|
6956 |
+
el_password_confirm_label.setAttribute("for", "el_verification_password");
|
6957 |
+
el_password_confirm_label.innerHTML = "Password Confirmation"
|
6958 |
+
|
6959 |
+
var el_password_confirm = document.createElement('input');
|
6960 |
+
el_password_confirm.setAttribute("id", "el_verification_password");
|
6961 |
+
el_password_confirm.setAttribute("type", "checkbox");
|
6962 |
+
el_password_confirm.setAttribute("onclick", "verification_password('"+i+"')");
|
6963 |
+
if(w_verification=="yes")
|
6964 |
+
el_password_confirm.setAttribute("checked", "checked");
|
6965 |
+
|
6966 |
+
|
6967 |
+
var el_verification_label_label = document.createElement('label');
|
6968 |
+
el_verification_label_label.setAttribute("class", "fm-field-label");
|
6969 |
+
el_verification_label_label.setAttribute("for", "edit_for_label");
|
6970 |
+
el_verification_label_label.innerHTML = "Field label confirmation";
|
6971 |
+
|
6972 |
+
var el_verification_label_textarea = document.createElement('textarea');
|
6973 |
+
el_verification_label_textarea.setAttribute("id", "edit_for_label");
|
6974 |
+
el_verification_label_textarea.setAttribute("rows", "4");
|
6975 |
+
el_verification_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value, '"+i+"_1_element_labelform_id_temp')");
|
6976 |
+
el_verification_label_textarea.innerHTML = w_verification_label;
|
6977 |
+
|
6978 |
+
|
6979 |
+
|
6980 |
var el_label_size_label = document.createElement('label');
|
6981 |
el_label_size_label.setAttribute("class", "fm-field-label");
|
6982 |
el_label_size_label.setAttribute("for", "edit_for_label_size");
|
6987 |
el_label_size.setAttribute("type", "text");
|
6988 |
el_label_size.setAttribute("value", w_field_label_size);
|
6989 |
el_label_size.setAttribute("onKeyPress", "return check_isnum(event)");
|
6990 |
+
el_label_size.setAttribute("onKeyUp", "change_w_style('"+i+"_label_sectionform_id_temp', this.value, '"+i+"_1_label_sectionform_id_temp')");
|
6991 |
|
6992 |
|
6993 |
var el_label_position_label = document.createElement('label');
|
7029 |
el_size.setAttribute("type", "text");
|
7030 |
el_size.setAttribute("value", w_size);
|
7031 |
el_size.setAttribute("onKeyPress", "return check_isnum(event)");
|
7032 |
+
el_size.setAttribute("onKeyUp", "change_w_style('"+i+"_elementform_id_temp', this.value, '"+i+"_1_elementform_id_temp')");
|
7033 |
|
7034 |
var el_required_label = document.createElement('label');
|
7035 |
el_required_label.setAttribute("class", "fm-field-label");
|
7039 |
var el_required = document.createElement('input');
|
7040 |
el_required.setAttribute("id", "el_required");
|
7041 |
el_required.setAttribute("type", "checkbox");
|
7042 |
+
el_required.setAttribute("onclick", "set_required('"+i+"_required', '"+i+"_1_required')");
|
7043 |
if(w_required=="yes")
|
7044 |
el_required.setAttribute("checked", "checked");
|
7045 |
|
7174 |
edit_main_td7.appendChild(el_unique_label);
|
7175 |
edit_main_td7_1.appendChild(el_unique);
|
7176 |
|
7177 |
+
edit_main_td9.appendChild(el_password_confirm_label);
|
7178 |
+
edit_main_td9_1.appendChild(el_password_confirm);
|
7179 |
+
|
7180 |
+
edit_main_td10.appendChild(el_verification_label_label);
|
7181 |
+
edit_main_td10_1.appendChild(el_verification_label_textarea);
|
7182 |
|
7183 |
edit_main_td6.appendChild(el_attr_label);
|
7184 |
edit_main_td6.appendChild(el_attr_add);
|
7202 |
edit_main_tr6.appendChild(edit_main_td6);
|
7203 |
edit_main_tr7.appendChild(edit_main_td7);
|
7204 |
edit_main_tr7.appendChild(edit_main_td7_1);
|
7205 |
+
edit_main_tr9.appendChild(edit_main_td9);
|
7206 |
+
edit_main_tr9.appendChild(edit_main_td9_1);
|
7207 |
+
edit_main_tr10.appendChild(edit_main_td10);
|
7208 |
+
edit_main_tr10.appendChild(edit_main_td10_1);
|
7209 |
+
|
7210 |
edit_main_table.appendChild(edit_main_tr1);
|
7211 |
edit_main_table.appendChild(edit_main_tr8);
|
7212 |
+
edit_main_table.appendChild(edit_main_tr9);
|
7213 |
+
edit_main_table.appendChild(edit_main_tr10);
|
7214 |
edit_main_table.appendChild(edit_main_tr2);
|
7215 |
edit_main_table.appendChild(edit_main_tr3);
|
7216 |
edit_main_table.appendChild(edit_main_tr4);
|
7248 |
adding.setAttribute("name", i+"_elementform_id_temp");
|
7249 |
adding.style.cssText = "width:"+w_size+"px;";
|
7250 |
|
7251 |
+
|
7252 |
+
///////////////////////// confirm password ///////////////////////////////
|
7253 |
+
|
7254 |
+
var adding_verification= document.createElement("input");
|
7255 |
+
adding_verification.setAttribute("type", "hidden");
|
7256 |
+
adding_verification.setAttribute("value", w_verification);
|
7257 |
+
adding_verification.setAttribute("name", i+"_verification_id_temp");
|
7258 |
+
adding_verification.setAttribute("id", i+"_verification_id_temp");
|
7259 |
+
|
7260 |
+
var adding_verification_input = document.createElement(element);
|
7261 |
+
adding_verification_input.setAttribute("type", type);
|
7262 |
+
|
7263 |
+
|
7264 |
+
adding_verification_input.style.cssText = "width:"+w_size+"px;";
|
7265 |
+
adding_verification_input.setAttribute("id", i+"_1_elementform_id_temp");
|
7266 |
+
adding_verification_input.setAttribute("name", i+"_1_elementform_id_temp");
|
7267 |
+
|
7268 |
+
var display_label_div_verification = (w_verification =="no" ? "none" : "table-cell");
|
7269 |
+
var div_label_verification = document.createElement('div');
|
7270 |
+
div_label_verification.setAttribute("align", 'left');
|
7271 |
+
div_label_verification.style.display=display_label_div_verification;
|
7272 |
+
div_label_verification.style.width=w_field_label_size+"px";
|
7273 |
+
div_label_verification.setAttribute("id", i+"_1_label_sectionform_id_temp");
|
7274 |
+
|
7275 |
+
|
7276 |
+
var display_element_verification = (w_verification =="no" ? "none" : "table-cell");
|
7277 |
+
var div_element_verification = document.createElement("div");
|
7278 |
+
div_element_verification.setAttribute("align", "left");
|
7279 |
+
div_element_verification.style.display = display_element_verification;
|
7280 |
+
div_element_verification.setAttribute("id", i+"_1_element_sectionform_id_temp");
|
7281 |
+
|
7282 |
+
|
7283 |
+
var label_verification = document.createElement('span');
|
7284 |
+
label_verification.setAttribute("id", i+"_1_element_labelform_id_temp");
|
7285 |
+
label_verification.innerHTML = w_verification_label;
|
7286 |
+
label_verification.setAttribute("class", "label");
|
7287 |
+
label_verification.style.verticalAlign="top";
|
7288 |
+
|
7289 |
+
var required_confirm = document.createElement('span');
|
7290 |
+
required_confirm.setAttribute("id", i+"_1_required_elementform_id_temp");
|
7291 |
+
required_confirm.innerHTML = "";
|
7292 |
+
required_confirm.setAttribute("class", "required");
|
7293 |
+
required_confirm.style.verticalAlign="top";
|
7294 |
+
if(w_required=="yes")
|
7295 |
+
required_confirm.innerHTML = " *";
|
7296 |
+
|
7297 |
+
|
7298 |
+
div_label_verification.appendChild(label_verification);
|
7299 |
+
div_label_verification.appendChild(required_confirm);
|
7300 |
+
|
7301 |
+
|
7302 |
+
|
7303 |
+
///////////////////////////////// END Confirm Password///////////////////////////////////////////
|
7304 |
+
|
7305 |
+
|
7306 |
|
7307 |
var div = document.createElement('div');
|
7308 |
div.setAttribute("id", "main_div");
|
7335 |
if(w_required=="yes")
|
7336 |
required.innerHTML = " *";
|
7337 |
var main_td = document.getElementById('show_table');
|
7338 |
+
|
7339 |
+
var br5 = document.createElement('br');
|
7340 |
|
7341 |
div_label.appendChild(label);
|
7342 |
div_label.appendChild(required);
|
7343 |
div_element.appendChild(adding_type);
|
7344 |
div_element.appendChild(adding_required);
|
7345 |
div_element.appendChild(adding_unique);
|
7346 |
+
div_element.appendChild(adding_verification);
|
7347 |
div_element.appendChild(adding);
|
7348 |
div_field.appendChild(div_label);
|
7349 |
div_field.appendChild(div_element);
|
7350 |
+
div_element_verification.appendChild(adding_verification_input);
|
7351 |
+
div_field.appendChild(br5);
|
7352 |
+
div_field.appendChild(div_label_verification);
|
7353 |
+
div_field.appendChild(div_element_verification);
|
7354 |
|
7355 |
div.appendChild(div_field);
|
7356 |
main_td.appendChild(div);
|
24962 |
{
|
24963 |
w_attr_name=[];
|
24964 |
w_attr_value=[];
|
24965 |
+
type_password(new_id,'Password:', '100', 'left', '200', 'no', 'no', 'wdform_input', 'no', 'Password confirmation:',w_attr_name, w_attr_value);
|
24966 |
}
|
24967 |
|
24968 |
function go_to_type_textarea(new_id)
|
27144 |
wdform_field.appendChild(add1);
|
27145 |
wdform_field.appendChild(add2);
|
27146 |
|
27147 |
+
if(type=="type_submitter_mail" || type=="type_password"){
|
27148 |
var br_submitter_mail = document.createElement('br');
|
27149 |
var add1_1 = document.getElementById(i+'_1_label_sectionform_id_temp');
|
27150 |
var add2_2 = document.getElementById(i+'_1_element_sectionform_id_temp');
|
27346 |
wdform_field.appendChild(add1);
|
27347 |
wdform_field.appendChild(add2);
|
27348 |
|
27349 |
+
if(type=="type_submitter_mail" || type=="type_password"){
|
27350 |
var br_submitter_mail = document.createElement('br');
|
27351 |
var add1_1 = document.getElementById(i+'_1_label_sectionform_id_temp');
|
27352 |
var add2_2 = document.getElementById(i+'_1_element_sectionform_id_temp');
|
27579 |
}
|
27580 |
case 'type_password':
|
27581 |
{
|
27582 |
+
w_verification = document.getElementById(id+"_verification_id_temp").value;
|
27583 |
+
if(document.getElementById(id+'_1_element_labelform_id_temp').innerHTML)
|
27584 |
+
w_verification_label=document.getElementById(id+'_1_element_labelform_id_temp').innerHTML;
|
27585 |
+
else
|
27586 |
+
w_verification_label=" ";
|
27587 |
atrs=return_attributes(id+'_elementform_id_temp');
|
27588 |
w_attr_name=atrs[0];
|
27589 |
w_attr_value=atrs[1];
|
27590 |
+
type_password(id, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_required, w_unique, w_class, w_verification, w_verification_label, w_attr_name, w_attr_value); break;
|
27591 |
}
|
27592 |
case 'type_textarea':
|
27593 |
{
|
28505 |
}
|
28506 |
case 'type_password':
|
28507 |
{
|
28508 |
+
w_verification = document.getElementById(id+"_verification_id_temp").value;
|
28509 |
+
if(document.getElementById(id+'_1_element_labelform_id_temp').innerHTML)
|
28510 |
+
w_verification_label=document.getElementById(id+'_1_element_labelform_id_temp').innerHTML;
|
28511 |
+
else
|
28512 |
+
w_verification_label=" ";
|
28513 |
atrs=return_attributes(id+'_elementform_id_temp');
|
28514 |
w_attr_name=atrs[0];
|
28515 |
w_attr_value=atrs[1];
|
28516 |
+
type_password(gen, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_required, w_unique, w_class, w_verification, w_verification_label, w_attr_name, w_attr_value); break;
|
28517 |
}
|
28518 |
case 'type_textarea':
|
28519 |
{
|
29379 |
}
|
29380 |
case 'type_password':
|
29381 |
{
|
29382 |
+
w_verification = document.getElementById(id+"_verification_id_temp").value;
|
29383 |
+
if(document.getElementById(id+'_1_element_labelform_id_temp').innerHTML)
|
29384 |
+
w_verification_label=document.getElementById(id+'_1_element_labelform_id_temp').innerHTML;
|
29385 |
+
else
|
29386 |
+
w_verification_label=" ";
|
29387 |
atrs=return_attributes(id+'_elementform_id_temp');
|
29388 |
w_attr_name=atrs[0];
|
29389 |
w_attr_value=atrs[1];
|
29396 |
form_fields+=w_required+"*:*w_required*:*";
|
29397 |
form_fields+=w_unique+"*:*w_unique*:*";
|
29398 |
form_fields+=w_class+"*:*w_class*:*";
|
29399 |
+
form_fields+=w_verification+"*:*w_verification*:*";
|
29400 |
+
form_fields+=w_verification_label+"*:*w_verification_label*:*";
|
29401 |
|
29402 |
for(j=0; j<w_attr_name.length; j++)
|
29403 |
{
|
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,9 @@ Email field should be used since it verifies that an entry format fulfills examp
|
|
315 |
|
316 |
== Changelog ==
|
317 |
|
|
|
|
|
|
|
318 |
= 1.9.14 =
|
319 |
Fixed: Bug on CSV and XML export
|
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.15
|
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.15 =
|
319 |
+
Added: Password Confirmation field
|
320 |
+
|
321 |
= 1.9.14 =
|
322 |
Fixed: Bug on CSV and XML export
|
323 |
|