Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.8.20

Version Description

Added: Autofill with user data for email address and name fields

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.8.20
Comparing to
See all releases

Code changes from version 1.8.19 to 1.8.20

admin/models/FMModelManage_fm.php CHANGED
@@ -330,11 +330,14 @@ class FMModelManage_fm {
330
  $rep ='<div id="wdform_field'.$id.'" type="type_phone" 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">'.$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_phone" 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"><div id="'.$id.'_table_name" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;"><div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: 50px;" '.$param['attributes'].' disabled /><span class="wdform_line" style="margin: 0px 4px; padding: 0px;">-</span></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div></div><div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_area_code">'.$w_mini_labels[0].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_phone_number">'.$w_mini_labels[1].'</label></div></div></div></div></div>';
331
  break;
332
  }
333
- case 'type_name': {
334
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class');
335
  $temp = $params;
336
  if(strpos($temp, 'w_name_fields') > -1)
337
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class', 'w_name_fields');
 
 
 
338
  foreach ($params_names as $params_name) {
339
  $temp = explode('*:*' . $params_name . '*:*', $temp);
340
  $param[$params_name] = $temp[0];
@@ -355,7 +358,8 @@ class FMModelManage_fm {
355
 
356
  $param['w_name_fields'] = isset($param['w_name_fields']) ? $param['w_name_fields'] : ($param['w_name_format'] == 'normal' ? 'no***no' : 'yes***yes');
357
  $w_name_fields = explode('***', $param['w_name_fields']);
358
-
 
359
  $w_name_format = '<div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.($w_first_val[0]==$w_title[0] ? "input_deactive" : "input_active").'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"'.$param['attributes'].' disabled /></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.($w_first_val[1]==$w_title[1] ? "input_deactive" : "input_active").'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div>';
360
  $w_name_format_mini_labels = '<div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_first">'.$w_mini_labels[1].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_last">'.$w_mini_labels[2].'</label></div>';
361
 
@@ -369,7 +373,7 @@ class FMModelManage_fm {
369
  $w_name_format_mini_labels = $w_name_format_mini_labels.'<div id="'.$id.'_td_name_label_middle" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_middle">'.$w_mini_labels[3].'</label></div>';
370
  }
371
 
372
- $rep ='<div id="wdform_field'.$id.'" type="type_name" 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_name" 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="hidden" name="'.$id.'_enable_fieldsform_id_temp" id="'.$id.'_enable_fieldsform_id_temp" title="'.$w_name_fields[0].'" first="yes" last="yes" middle="'.$w_name_fields[1].'"><div id="'.$id.'_table_name" cellpadding="0" cellspacing="0" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;">'.$w_name_format.'</div><div id="'.$id.'_tr_name2" style="display: table-row;">'.$w_name_format_mini_labels.'</div></div></div></div>';
373
  break;
374
  }
375
  case 'type_address': {
@@ -444,9 +448,11 @@ class FMModelManage_fm {
444
  $rep ='<div id="wdform_field'.$id.'" type="type_address" 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; vertical-align:top;"><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_address" 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" name="'.$id.'_disable_fieldsform_id_temp" id="'.$id.'_disable_fieldsform_id_temp" street1="'.$w_disabled_fields[0].'" street2="'.$w_disabled_fields[1].'" city="'.$w_disabled_fields[2].'" state="'.$w_disabled_fields[3].'" postal="'.$w_disabled_fields[4].'" country="'.$w_disabled_fields[5].'" us_states="'.$w_disabled_fields[6].'"><div id="'.$id.'_div_address" style="width: '.$param['w_size'].'px;">'.$address_fields.$hidden_inputs.'</div></div></div>';
445
  break;
446
  }
447
- case 'type_submitter_mail': {
448
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class');
449
  $temp=$params;
 
 
450
  foreach($params_names as $params_name )
451
  {
452
  $temp=explode('*:*'.$params_name.'*:*',$temp);
@@ -465,8 +471,9 @@ class FMModelManage_fm {
465
  $param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "table-cell" : "block");
466
  $input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
467
  $required_sym = ($param['w_required']=="yes" ? " *" : "");
468
-
469
- $rep ='<div id="wdform_field'.$id.'" type="type_submitter_mail" 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_submitter_mail" 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="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div></div>';
 
470
  break;
471
  }
472
  case 'type_checkbox':
330
  $rep ='<div id="wdform_field'.$id.'" type="type_phone" 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">'.$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_phone" 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"><div id="'.$id.'_table_name" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;"><div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: 50px;" '.$param['attributes'].' disabled /><span class="wdform_line" style="margin: 0px 4px; padding: 0px;">-</span></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div></div><div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_area_code">'.$w_mini_labels[0].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_phone_number">'.$w_mini_labels[1].'</label></div></div></div></div></div>';
331
  break;
332
  }
333
+ case 'type_name': {
334
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class');
335
  $temp = $params;
336
  if(strpos($temp, 'w_name_fields') > -1)
337
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class', 'w_name_fields');
338
+
339
+ if(strpos($temp, 'w_autofill') > -1)
340
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class', 'w_name_fields', 'w_autofill');
341
  foreach ($params_names as $params_name) {
342
  $temp = explode('*:*' . $params_name . '*:*', $temp);
343
  $param[$params_name] = $temp[0];
358
 
359
  $param['w_name_fields'] = isset($param['w_name_fields']) ? $param['w_name_fields'] : ($param['w_name_format'] == 'normal' ? 'no***no' : 'yes***yes');
360
  $w_name_fields = explode('***', $param['w_name_fields']);
361
+ $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
362
+
363
  $w_name_format = '<div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.($w_first_val[0]==$w_title[0] ? "input_deactive" : "input_active").'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"'.$param['attributes'].' disabled /></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.($w_first_val[1]==$w_title[1] ? "input_deactive" : "input_active").'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div>';
364
  $w_name_format_mini_labels = '<div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_first">'.$w_mini_labels[1].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_last">'.$w_mini_labels[2].'</label></div>';
365
 
373
  $w_name_format_mini_labels = $w_name_format_mini_labels.'<div id="'.$id.'_td_name_label_middle" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_middle">'.$w_mini_labels[3].'</label></div>';
374
  }
375
 
376
+ $rep ='<div id="wdform_field'.$id.'" type="type_name" 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_name" 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="hidden" value="'.$param['w_autofill'].'" name="'.$id.'_autofillform_id_temp" id="'.$id.'_autofillform_id_temp"><input type="hidden" name="'.$id.'_enable_fieldsform_id_temp" id="'.$id.'_enable_fieldsform_id_temp" title="'.$w_name_fields[0].'" first="yes" last="yes" middle="'.$w_name_fields[1].'"><div id="'.$id.'_table_name" cellpadding="0" cellspacing="0" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;">'.$w_name_format.'</div><div id="'.$id.'_tr_name2" style="display: table-row;">'.$w_name_format_mini_labels.'</div></div></div></div>';
377
  break;
378
  }
379
  case 'type_address': {
448
  $rep ='<div id="wdform_field'.$id.'" type="type_address" 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; vertical-align:top;"><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_address" 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" name="'.$id.'_disable_fieldsform_id_temp" id="'.$id.'_disable_fieldsform_id_temp" street1="'.$w_disabled_fields[0].'" street2="'.$w_disabled_fields[1].'" city="'.$w_disabled_fields[2].'" state="'.$w_disabled_fields[3].'" postal="'.$w_disabled_fields[4].'" country="'.$w_disabled_fields[5].'" us_states="'.$w_disabled_fields[6].'"><div id="'.$id.'_div_address" style="width: '.$param['w_size'].'px;">'.$address_fields.$hidden_inputs.'</div></div></div>';
449
  break;
450
  }
451
+ case 'type_submitter_mail': {
452
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class');
453
  $temp=$params;
454
+ if(strpos($temp, 'w_autofill') > -1)
455
+ $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class', 'w_autofill');
456
  foreach($params_names as $params_name )
457
  {
458
  $temp=explode('*:*'.$params_name.'*:*',$temp);
471
  $param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "table-cell" : "block");
472
  $input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
473
  $required_sym = ($param['w_required']=="yes" ? " *" : "");
474
+ $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
475
+
476
+ $rep ='<div id="wdform_field'.$id.'" type="type_submitter_mail" 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_submitter_mail" 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="hidden" value="'.$param['w_autofill'].'" name="'.$id.'_autofillform_id_temp" id="'.$id.'_autofillform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div></div>';
477
  break;
478
  }
479
  case 'type_checkbox':
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.8.19
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -271,7 +271,7 @@ function register_fmemailverification_cpt(){
271
  // Activate plugin.
272
  function form_maker_activate() {
273
  $version = get_option("wd_form_maker_version");
274
- $new_version = '1.8.19';
275
  global $wpdb;
276
  if (!$version) {
277
  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.8.20
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
271
  // Activate plugin.
272
  function form_maker_activate() {
273
  $version = get_option("wd_form_maker_version");
274
+ $new_version = '1.8.20';
275
  global $wpdb;
276
  if (!$version) {
277
  add_option("wd_form_maker_version", $new_version, '', 'no');
frontend/views/FMViewForm_maker.php CHANGED
@@ -23,7 +23,20 @@ class FMViewForm_maker {
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($id) {
26
- $fm_settings = get_option('fm_settings');
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  $current_url=htmlentities($_SERVER['REQUEST_URI']);
28
  $form_maker_front_end = "";
29
  $pattern = '/\/\/(.+)(\r\n|\r|\n)/';
@@ -1426,11 +1439,13 @@ class FMViewForm_maker {
1426
  break;
1427
  }
1428
 
1429
- case 'type_name': {
1430
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class');
1431
  $temp = $params;
1432
  if(strpos($temp, 'w_name_fields') > -1)
1433
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class', 'w_name_fields');
 
 
1434
  foreach($params_names as $params_name ) {
1435
  $temp=explode('*:*'.$params_name.'*:*',$temp);
1436
  $param[$params_name] = $temp[0];
@@ -1450,10 +1465,13 @@ class FMViewForm_maker {
1450
  $w_mini_labels = explode('***',$param['w_mini_labels']);
1451
  $param['w_name_fields'] = isset($param['w_name_fields']) ? $param['w_name_fields'] : ($param['w_name_format'] == 'normal' ? 'no***no' : 'yes***yes');
1452
  $w_name_fields = explode('***', $param['w_name_fields']);
 
 
1453
 
1454
  $element_title = isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_title'.$form_id])) : NULL;
1455
  $element_middle = isset($_POST['wdform_'.$id1.'_element_middle'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_middle'.$form_id])) : NULL;
1456
  $element_first = isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : NULL;
 
1457
  if(isset($element_title) || isset($element_middle)) {
1458
  $param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_last'.$form_id])) : $w_first_val[1]).'***'.(isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_title'.$form_id])) : $w_first_val[2]).'***'.(isset($_POST['wdform_'.$id1.'_element_middle'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_middle'.$form_id])) : $w_first_val[3]);
1459
  }
@@ -1462,10 +1480,15 @@ class FMViewForm_maker {
1462
  $param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_last'.$form_id])) : $w_first_val[1]);
1463
  }
1464
  }
1465
-
1466
- $required = ($param['w_required']=="yes" ? true : false);
1467
- $w_first_val = explode('***',$param['w_first_val']);
1468
-
 
 
 
 
 
1469
  if($w_name_fields[0]== 'no' && $w_name_fields[1]== 'no' ) {
1470
  $w_name_format = '
1471
  <div style="display: table-cell; width:50%">
@@ -1672,6 +1695,8 @@ class FMViewForm_maker {
1672
  case 'type_submitter_mail': {
1673
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class');
1674
  $temp=$params;
 
 
1675
  foreach($params_names as $params_name ) {
1676
  $temp=explode('*:*'.$params_name.'*:*',$temp);
1677
  $param[$params_name] = $temp[0];
@@ -1684,15 +1709,21 @@ class FMViewForm_maker {
1684
  $param['attributes'] = $param['attributes'].' '.$attr;
1685
  }
1686
  }
1687
-
1688
- $param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $param['w_first_val']);
1689
-
1690
  $wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
1691
  $param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
1692
  $param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
1693
- $input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
1694
  $required = ($param['w_required']=="yes" ? true : false);
1695
-
 
 
 
 
 
 
 
 
 
1696
  $rep ='<div type="type_submitter_mail" 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">'.$label.'</span>';
1697
  if($required) {
1698
  $rep.='<span class="wdform-required">'.$required_sym.'</span>';
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($id) {
26
+ $fm_settings = get_option('fm_settings');
27
+ $current_user = wp_get_current_user();
28
+ if ($current_user->ID != 0)
29
+ {
30
+ $wp_userid = $current_user->ID;
31
+ $wp_username = $current_user->display_name;
32
+ $wp_useremail = $current_user->user_email;
33
+ }
34
+ else
35
+ {
36
+ $wp_userid = '';
37
+ $wp_username = '';
38
+ $wp_useremail = '';
39
+ }
40
  $current_url=htmlentities($_SERVER['REQUEST_URI']);
41
  $form_maker_front_end = "";
42
  $pattern = '/\/\/(.+)(\r\n|\r|\n)/';
1439
  break;
1440
  }
1441
 
1442
+ case 'type_name': {
1443
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class');
1444
  $temp = $params;
1445
  if(strpos($temp, 'w_name_fields') > -1)
1446
  $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class', 'w_name_fields');
1447
+ if(strpos($temp, 'w_autofill') > -1)
1448
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class', 'w_name_fields', 'w_autofill');
1449
  foreach($params_names as $params_name ) {
1450
  $temp=explode('*:*'.$params_name.'*:*',$temp);
1451
  $param[$params_name] = $temp[0];
1465
  $w_mini_labels = explode('***',$param['w_mini_labels']);
1466
  $param['w_name_fields'] = isset($param['w_name_fields']) ? $param['w_name_fields'] : ($param['w_name_format'] == 'normal' ? 'no***no' : 'yes***yes');
1467
  $w_name_fields = explode('***', $param['w_name_fields']);
1468
+ $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
1469
+
1470
 
1471
  $element_title = isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_title'.$form_id])) : NULL;
1472
  $element_middle = isset($_POST['wdform_'.$id1.'_element_middle'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_middle'.$form_id])) : NULL;
1473
  $element_first = isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : NULL;
1474
+
1475
  if(isset($element_title) || isset($element_middle)) {
1476
  $param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_last'.$form_id])) : $w_first_val[1]).'***'.(isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_title'.$form_id])) : $w_first_val[2]).'***'.(isset($_POST['wdform_'.$id1.'_element_middle'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_middle'.$form_id])) : $w_first_val[3]);
1477
  }
1480
  $param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_last'.$form_id])) : $w_first_val[1]);
1481
  }
1482
  }
1483
+
1484
+ $w_first_val = explode('***',$param['w_first_val']);
1485
+ $required = ($param['w_required']=="yes" ? true : false);
1486
+ if( $param['w_autofill'] == 'yes' && $wp_username) {
1487
+ $user_display_name = explode(' ', $wp_username);
1488
+ $w_first_val[0] = $user_display_name[0];
1489
+ $w_first_val[1] = isset($user_display_name[1]) ? $user_display_name[1] : $w_first_val[1];
1490
+ }
1491
+
1492
  if($w_name_fields[0]== 'no' && $w_name_fields[1]== 'no' ) {
1493
  $w_name_format = '
1494
  <div style="display: table-cell; width:50%">
1695
  case 'type_submitter_mail': {
1696
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class');
1697
  $temp=$params;
1698
+ if(strpos($temp, 'w_autofill') > -1)
1699
+ $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class', 'w_autofill');
1700
  foreach($params_names as $params_name ) {
1701
  $temp=explode('*:*'.$params_name.'*:*',$temp);
1702
  $param[$params_name] = $temp[0];
1709
  $param['attributes'] = $param['attributes'].' '.$attr;
1710
  }
1711
  }
1712
+
 
 
1713
  $wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
1714
  $param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
1715
  $param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
 
1716
  $required = ($param['w_required']=="yes" ? true : false);
1717
+ $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
1718
+ if($param['w_autofill'] == 'yes' && $wp_useremail){
1719
+ $param['w_first_val'] = (isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $wp_useremail);
1720
+ $input_active = "input_active";
1721
+ }
1722
+ else {
1723
+ $param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $param['w_first_val']);
1724
+ $input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
1725
+ }
1726
+
1727
  $rep ='<div type="type_submitter_mail" 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">'.$label.'</span>';
1728
  if($required) {
1729
  $rep.='<span class="wdform-required">'.$required_sym.'</span>';
js/formmaker_div_free.js CHANGED
@@ -8290,7 +8290,7 @@ function explode( delimiter, string ) {
8290
  }
8291
 
8292
 
8293
- function type_name(i, w_field_label, w_field_label_size, w_field_label_pos, w_first_val, w_title, w_mini_labels, w_size, w_name_format, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_name_fields) {
8294
 
8295
  document.getElementById("element_type").value="type_name";
8296
  delete_last_child();
@@ -8315,6 +8315,7 @@ function type_name(i, w_field_label, w_field_label_size, w_field_label_pos, w_fi
8315
  var edit_main_tr9 = document.createElement('tr');
8316
  var edit_main_tr10 = document.createElement('tr');
8317
  var edit_main_tr11 = document.createElement('tr');
 
8318
  var edit_main_td1 = document.createElement('td');
8319
  var edit_main_td1_1 = document.createElement('td');
8320
  var edit_main_td2 = document.createElement('td');
@@ -8337,7 +8338,10 @@ function type_name(i, w_field_label, w_field_label_size, w_field_label_pos, w_fi
8337
  var edit_main_td10_1 = document.createElement('td');
8338
  var edit_main_td11 = document.createElement('td');
8339
  var edit_main_td11_1 = document.createElement('td');
8340
-
 
 
 
8341
  var el_label_label = document.createElement('label');
8342
  el_label_label.setAttribute("class", "fm-field-label");
8343
  el_label_label.setAttribute("for", "edit_for_label");
@@ -8508,6 +8512,19 @@ else
8508
  if(w_required=="yes")
8509
  el_required.setAttribute("checked", "checked");
8510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8511
  var el_unique_label = document.createElement('label');
8512
  el_unique_label.setAttribute("class", "fm-field-label");
8513
  el_unique_label.setAttribute("for", "el_unique");
@@ -8670,12 +8687,13 @@ else
8670
  edit_main_td5.appendChild(el_required_label);
8671
  edit_main_td5_1.appendChild(el_required);
8672
 
8673
- edit_main_td8.appendChild(el_unique_label);
8674
- edit_main_td8_1.appendChild(el_unique);
8675
-
8676
-
8677
 
 
 
8678
 
 
 
 
8679
  edit_main_td6.appendChild(el_attr_label);
8680
  edit_main_td6.appendChild(el_attr_add);
8681
  edit_main_td6.appendChild(br2);
@@ -8702,6 +8720,8 @@ else
8702
  edit_main_tr6.appendChild(edit_main_td6_1);
8703
  edit_main_tr8.appendChild(edit_main_td8);
8704
  edit_main_tr8.appendChild(edit_main_td8_1);
 
 
8705
  edit_main_tr9.appendChild(edit_main_td9);
8706
  edit_main_tr9.appendChild(edit_main_td9_1);
8707
 
@@ -8715,6 +8735,7 @@ else
8715
  edit_main_table.appendChild(edit_main_tr4);
8716
  edit_main_table.appendChild(edit_main_tr5);
8717
  edit_main_table.appendChild(edit_main_tr8);
 
8718
  edit_main_table.appendChild(edit_main_tr6);
8719
  edit_div.appendChild(edit_main_table);
8720
 
@@ -8727,6 +8748,13 @@ else
8727
  adding_type.setAttribute("value", "type_name");
8728
  adding_type.setAttribute("name", i+"_typeform_id_temp");
8729
  adding_type.setAttribute("id", i+"_typeform_id_temp");
 
 
 
 
 
 
 
8730
  var adding_required= document.createElement("input");
8731
  adding_required.setAttribute("type", "hidden");
8732
  adding_required.setAttribute("value", w_required);
@@ -8877,6 +8905,7 @@ else
8877
  div_element.appendChild(adding_type);
8878
  div_element.appendChild(adding_required);
8879
  div_element.appendChild(adding_unique);
 
8880
  div_element.appendChild(adding_fields);
8881
  div_element.appendChild(table_name);
8882
  div_field.appendChild(div_label);
@@ -9964,7 +9993,16 @@ function type_address(i, w_field_label, w_field_label_size, w_field_label_pos, w
9964
  });
9965
  }
9966
 
9967
- function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value){
 
 
 
 
 
 
 
 
 
9968
  document.getElementById("element_type").value="type_submitter_mail";
9969
 
9970
  delete_last_child();
@@ -9986,6 +10024,7 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
9986
  var edit_main_tr8 = document.createElement('tr');
9987
  var edit_main_tr9 = document.createElement('tr');
9988
  var edit_main_tr10 = document.createElement('tr');
 
9989
 
9990
  var edit_main_td1 = document.createElement('td');
9991
  var edit_main_td1_1 = document.createElement('td');
@@ -10003,12 +10042,12 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10003
  var edit_main_td7_1 = document.createElement('td');
10004
  var edit_main_td8 = document.createElement('td');
10005
  var edit_main_td8_1 = document.createElement('td');
10006
-
10007
  var edit_main_td9 = document.createElement('td');
10008
  var edit_main_td9_1 = document.createElement('td');
10009
-
10010
  var edit_main_td10 = document.createElement('td');
10011
  var edit_main_td10_1 = document.createElement('td');
 
 
10012
 
10013
  var el_label_label = document.createElement('label');
10014
  el_label_label.setAttribute("class", "fm-field-label");
@@ -10016,10 +10055,9 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10016
  el_label_label.innerHTML = "Field label";
10017
 
10018
  var el_label_textarea = document.createElement('textarea');
10019
- el_label_textarea.setAttribute("id", "edit_for_label");
10020
- el_label_textarea.setAttribute("rows", "4");
10021
-
10022
- el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value)");
10023
  el_label_textarea.innerHTML = w_field_label;
10024
 
10025
  var el_label_size_label = document.createElement('label');
@@ -10107,14 +10145,25 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10107
  el_required_label.innerHTML = "Required";
10108
 
10109
  var el_required = document.createElement('input');
10110
- el_required.setAttribute("id", "el_required");
10111
- el_required.setAttribute("type", "checkbox");
10112
-
10113
- el_required.setAttribute("onclick", "set_required('"+i+"_required')");
10114
- if(w_required=="yes")
10115
-
10116
- el_required.setAttribute("checked", "checked");
10117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10118
  var el_unique_label = document.createElement('label');
10119
  el_unique_label.setAttribute("class", "fm-field-label");
10120
  el_unique_label.setAttribute("for", "el_unique");
@@ -10247,6 +10296,8 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10247
  edit_main_td9.appendChild(el_unique_label);
10248
  edit_main_td9_1.appendChild(el_unique);
10249
 
 
 
10250
 
10251
  edit_main_td8.appendChild(el_attr_label);
10252
  edit_main_td8.appendChild(el_attr_add);
@@ -10272,6 +10323,8 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10272
  edit_main_tr7.appendChild(edit_main_td7_1);
10273
  edit_main_tr9.appendChild(edit_main_td9);
10274
  edit_main_tr9.appendChild(edit_main_td9_1);
 
 
10275
  edit_main_tr8.appendChild(edit_main_td8);
10276
  edit_main_tr8.appendChild(edit_main_td8_1);
10277
  edit_main_table.appendChild(edit_main_tr1);
@@ -10282,6 +10335,7 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10282
  edit_main_table.appendChild(edit_main_tr5);
10283
  edit_main_table.appendChild(edit_main_tr7);
10284
  edit_main_table.appendChild(edit_main_tr9);
 
10285
  edit_main_table.appendChild(edit_main_tr8);
10286
  edit_div.appendChild(edit_main_table);
10287
 
@@ -10292,11 +10346,17 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10292
 
10293
  element='input'; type='text';
10294
  var adding_type = document.createElement("input");
10295
- adding_type.setAttribute("type", "hidden");
10296
- adding_type.setAttribute("value", "type_submitter_mail");
10297
- adding_type.setAttribute("name", i+"_typeform_id_temp");
10298
- adding_type.setAttribute("id", i+"_typeform_id_temp");
10299
-
 
 
 
 
 
 
10300
  var adding_required = document.createElement("input");
10301
  adding_required.setAttribute("type", "hidden");
10302
  adding_required.setAttribute("value", w_required);
@@ -10378,6 +10438,7 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10378
  div_element.appendChild(adding_type);
10379
  div_element.appendChild(adding_required);
10380
  div_element.appendChild(adding_unique);
 
10381
  div_element.appendChild(adding);
10382
  div_field.appendChild(div_label);
10383
  div_field.appendChild(div_element);
@@ -21825,7 +21886,7 @@ function go_to_type_name(new_id)
21825
  w_title = ['', '', '', ''];
21826
  w_mini_labels = ['Title','First','Last','Middle'];
21827
  w_name_fields = ['no', 'no'];
21828
- type_name(new_id,'Name:', '100', 'left', w_first_val, w_title, w_mini_labels, '100', 'normal', 'no', 'no', '',w_attr_name, w_attr_value, w_name_fields)
21829
  }
21830
 
21831
  function go_to_type_address(new_id)
@@ -21851,7 +21912,7 @@ function go_to_type_submitter_mail(new_id)
21851
  {
21852
  w_attr_name=[];
21853
  w_attr_value=[];
21854
- type_submitter_mail(new_id,'E-mail:', '100', 'left', '200', '', '', 'no', '', w_attr_name, w_attr_value);
21855
  }
21856
 
21857
  function go_to_type_time(new_id)
@@ -24434,7 +24495,7 @@ function edit(id)
24434
  w_name_title = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('title') : (w_name_format=="normal" ? 'no' : 'yes');
24435
  w_name_middle = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('middle') : (w_name_format=="normal" ? 'no' : 'yes');
24436
  w_name_fields = [w_name_title, w_name_middle];
24437
-
24438
  s=document.getElementById(id+"_element_firstform_id_temp").style.width;
24439
  w_size=s.substring(0,s.length-2);
24440
  atrs=return_attributes(id+'_element_firstform_id_temp');
@@ -24442,7 +24503,7 @@ function edit(id)
24442
  w_attr_value=atrs[1];
24443
 
24444
 
24445
- type_name(id, w_field_label, w_field_label_size, w_field_label_pos,w_first_val, w_title, w_mini_labels, w_size, w_name_format, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_name_fields);break;
24446
  }
24447
 
24448
  case 'type_address':
@@ -24509,11 +24570,11 @@ function edit(id)
24509
  {
24510
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
24511
  w_title=document.getElementById(id+"_elementform_id_temp").title;
24512
-
24513
  atrs=return_attributes(id+'_elementform_id_temp');
24514
  w_attr_name=atrs[0];
24515
  w_attr_value=atrs[1];
24516
- type_submitter_mail(id, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value); break;
24517
  }
24518
  case 'type_checkbox':
24519
  {
@@ -25269,14 +25330,14 @@ function duplicate(id) {
25269
  w_name_title = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('title') : (w_name_format=="normal" ? 'no' : 'yes');
25270
  w_name_middle = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('middle') : (w_name_format=="normal" ? 'no' : 'yes');
25271
  w_name_fields = [w_name_title, w_name_middle];
25272
-
25273
  s=document.getElementById(id+"_element_firstform_id_temp").style.width;
25274
  w_size=s.substring(0,s.length-2);
25275
  atrs=return_attributes(id+'_element_firstform_id_temp');
25276
  w_attr_name=atrs[0];
25277
  w_attr_value=atrs[1];
25278
 
25279
- type_name(gen, w_field_label, w_field_label_size, w_field_label_pos,w_first_val, w_title, w_mini_labels, w_size, w_name_format, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_name_fields);break;
25280
  }
25281
 
25282
  case 'type_address':
@@ -25343,11 +25404,11 @@ function duplicate(id) {
25343
  {
25344
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
25345
  w_title=document.getElementById(id+"_elementform_id_temp").title;
25346
-
25347
  atrs=return_attributes(id+'_elementform_id_temp');
25348
  w_attr_name=atrs[0];
25349
  w_attr_value=atrs[1];
25350
- type_submitter_mail(gen, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value); break;
25351
  }
25352
  case 'type_checkbox':
25353
  {
@@ -26119,7 +26180,7 @@ function gen_form_fields()
26119
  w_name_title = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('title') : (w_name_format=="normal" ? 'no' : 'yes');
26120
  w_name_middle = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('middle') : (w_name_format=="normal" ? 'no' : 'yes');
26121
  w_name_fields = [w_name_title, w_name_middle];
26122
-
26123
  s=document.getElementById(id+"_element_firstform_id_temp").style.width;
26124
  w_size=s.substring(0,s.length-2);
26125
  atrs=return_attributes(id+'_element_firstform_id_temp');
@@ -26143,7 +26204,7 @@ function gen_form_fields()
26143
  form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
26144
  }
26145
  form_fields+=w_name_fields.join('***')+"*:*w_name_fields*:*";
26146
-
26147
  form_fields+="*:*new_field*:*";
26148
  break;
26149
  }
@@ -26227,7 +26288,8 @@ function gen_form_fields()
26227
  {
26228
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
26229
  w_title=document.getElementById(id+"_elementform_id_temp").title;
26230
-
 
26231
  atrs=return_attributes(id+'_elementform_id_temp');
26232
  w_attr_name=atrs[0];
26233
  w_attr_value=atrs[1];
@@ -26246,7 +26308,7 @@ function gen_form_fields()
26246
  {
26247
  form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
26248
  }
26249
-
26250
  form_fields+="*:*new_field*:*";
26251
  break;
26252
  }
8290
  }
8291
 
8292
 
8293
+ function type_name(i, w_field_label, w_field_label_size, w_field_label_pos, w_first_val, w_title, w_mini_labels, w_size, w_name_format, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_name_fields, w_autofill) {
8294
 
8295
  document.getElementById("element_type").value="type_name";
8296
  delete_last_child();
8315
  var edit_main_tr9 = document.createElement('tr');
8316
  var edit_main_tr10 = document.createElement('tr');
8317
  var edit_main_tr11 = document.createElement('tr');
8318
+ var edit_main_tr12 = document.createElement('tr');
8319
  var edit_main_td1 = document.createElement('td');
8320
  var edit_main_td1_1 = document.createElement('td');
8321
  var edit_main_td2 = document.createElement('td');
8338
  var edit_main_td10_1 = document.createElement('td');
8339
  var edit_main_td11 = document.createElement('td');
8340
  var edit_main_td11_1 = document.createElement('td');
8341
+ var edit_main_td12 = document.createElement('td');
8342
+ var edit_main_td12_1 = document.createElement('td');
8343
+
8344
+
8345
  var el_label_label = document.createElement('label');
8346
  el_label_label.setAttribute("class", "fm-field-label");
8347
  el_label_label.setAttribute("for", "edit_for_label");
8512
  if(w_required=="yes")
8513
  el_required.setAttribute("checked", "checked");
8514
 
8515
+ var el_autofill_label = document.createElement('label');
8516
+ el_autofill_label.setAttribute("class", "fm-field-label");
8517
+ el_autofill_label.setAttribute("for", "el_autofill");
8518
+ el_autofill_label.innerHTML = "Autofill with user name";
8519
+
8520
+ var el_autofill = document.createElement('input');
8521
+ el_autofill.setAttribute("id", "el_autofill");
8522
+ el_autofill.setAttribute("type", "checkbox");
8523
+ el_autofill.setAttribute("onclick", "set_autofill('"+i+"_autofillform_id_temp')");
8524
+ if(w_autofill=="yes")
8525
+ el_autofill.setAttribute("checked", "checked");
8526
+
8527
+
8528
  var el_unique_label = document.createElement('label');
8529
  el_unique_label.setAttribute("class", "fm-field-label");
8530
  el_unique_label.setAttribute("for", "el_unique");
8687
  edit_main_td5.appendChild(el_required_label);
8688
  edit_main_td5_1.appendChild(el_required);
8689
 
 
 
 
 
8690
 
8691
+ edit_main_td12.appendChild(el_autofill_label);
8692
+ edit_main_td12_1.appendChild(el_autofill);
8693
 
8694
+ edit_main_td8.appendChild(el_unique_label);
8695
+ edit_main_td8_1.appendChild(el_unique);
8696
+
8697
  edit_main_td6.appendChild(el_attr_label);
8698
  edit_main_td6.appendChild(el_attr_add);
8699
  edit_main_td6.appendChild(br2);
8720
  edit_main_tr6.appendChild(edit_main_td6_1);
8721
  edit_main_tr8.appendChild(edit_main_td8);
8722
  edit_main_tr8.appendChild(edit_main_td8_1);
8723
+ edit_main_tr12.appendChild(edit_main_td12);
8724
+ edit_main_tr12.appendChild(edit_main_td12_1);
8725
  edit_main_tr9.appendChild(edit_main_td9);
8726
  edit_main_tr9.appendChild(edit_main_td9_1);
8727
 
8735
  edit_main_table.appendChild(edit_main_tr4);
8736
  edit_main_table.appendChild(edit_main_tr5);
8737
  edit_main_table.appendChild(edit_main_tr8);
8738
+ edit_main_table.appendChild(edit_main_tr12);
8739
  edit_main_table.appendChild(edit_main_tr6);
8740
  edit_div.appendChild(edit_main_table);
8741
 
8748
  adding_type.setAttribute("value", "type_name");
8749
  adding_type.setAttribute("name", i+"_typeform_id_temp");
8750
  adding_type.setAttribute("id", i+"_typeform_id_temp");
8751
+
8752
+ var adding_autofill = document.createElement("input");
8753
+ adding_autofill.setAttribute("type", "hidden");
8754
+ adding_autofill.setAttribute("value", w_autofill);
8755
+ adding_autofill.setAttribute("name", i+"_autofillform_id_temp");
8756
+ adding_autofill.setAttribute("id", i+"_autofillform_id_temp");
8757
+
8758
  var adding_required= document.createElement("input");
8759
  adding_required.setAttribute("type", "hidden");
8760
  adding_required.setAttribute("value", w_required);
8905
  div_element.appendChild(adding_type);
8906
  div_element.appendChild(adding_required);
8907
  div_element.appendChild(adding_unique);
8908
+ div_element.appendChild(adding_autofill);
8909
  div_element.appendChild(adding_fields);
8910
  div_element.appendChild(table_name);
8911
  div_field.appendChild(div_label);
9993
  });
9994
  }
9995
 
9996
+ function set_autofill(element){
9997
+ if(document.getElementById(element).value == 'yes') {
9998
+ document.getElementById(element).value = 'no';
9999
+ }
10000
+ else {
10001
+ document.getElementById(element).value = 'yes';
10002
+ }
10003
+ }
10004
+
10005
+ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_autofill){
10006
  document.getElementById("element_type").value="type_submitter_mail";
10007
 
10008
  delete_last_child();
10024
  var edit_main_tr8 = document.createElement('tr');
10025
  var edit_main_tr9 = document.createElement('tr');
10026
  var edit_main_tr10 = document.createElement('tr');
10027
+ var edit_main_tr11 = document.createElement('tr');
10028
 
10029
  var edit_main_td1 = document.createElement('td');
10030
  var edit_main_td1_1 = document.createElement('td');
10042
  var edit_main_td7_1 = document.createElement('td');
10043
  var edit_main_td8 = document.createElement('td');
10044
  var edit_main_td8_1 = document.createElement('td');
 
10045
  var edit_main_td9 = document.createElement('td');
10046
  var edit_main_td9_1 = document.createElement('td');
 
10047
  var edit_main_td10 = document.createElement('td');
10048
  var edit_main_td10_1 = document.createElement('td');
10049
+ var edit_main_td11 = document.createElement('td');
10050
+ var edit_main_td11_1 = document.createElement('td');
10051
 
10052
  var el_label_label = document.createElement('label');
10053
  el_label_label.setAttribute("class", "fm-field-label");
10055
  el_label_label.innerHTML = "Field label";
10056
 
10057
  var el_label_textarea = document.createElement('textarea');
10058
+ el_label_textarea.setAttribute("id", "edit_for_label");
10059
+ el_label_textarea.setAttribute("rows", "4");
10060
+ el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value)");
 
10061
  el_label_textarea.innerHTML = w_field_label;
10062
 
10063
  var el_label_size_label = document.createElement('label');
10145
  el_required_label.innerHTML = "Required";
10146
 
10147
  var el_required = document.createElement('input');
10148
+ el_required.setAttribute("id", "el_required");
10149
+ el_required.setAttribute("type", "checkbox");
10150
+ el_required.setAttribute("onclick", "set_required('"+i+"_required')");
10151
+ if(w_required=="yes")
10152
+ el_required.setAttribute("checked", "checked");
 
 
10153
 
10154
+ var el_autofill_label = document.createElement('label');
10155
+ el_autofill_label.setAttribute("class", "fm-field-label");
10156
+ el_autofill_label.setAttribute("for", "el_autofill");
10157
+ el_autofill_label.innerHTML = "Autofill with user email";
10158
+
10159
+ var el_autofill = document.createElement('input');
10160
+ el_autofill.setAttribute("id", "el_autofill");
10161
+ el_autofill.setAttribute("type", "checkbox");
10162
+ el_autofill.setAttribute("onclick", "set_autofill('"+i+"_autofillform_id_temp')");
10163
+ if(w_autofill=="yes")
10164
+ el_autofill.setAttribute("checked", "checked");
10165
+
10166
+
10167
  var el_unique_label = document.createElement('label');
10168
  el_unique_label.setAttribute("class", "fm-field-label");
10169
  el_unique_label.setAttribute("for", "el_unique");
10296
  edit_main_td9.appendChild(el_unique_label);
10297
  edit_main_td9_1.appendChild(el_unique);
10298
 
10299
+ edit_main_td11.appendChild(el_autofill_label);
10300
+ edit_main_td11_1.appendChild(el_autofill);
10301
 
10302
  edit_main_td8.appendChild(el_attr_label);
10303
  edit_main_td8.appendChild(el_attr_add);
10323
  edit_main_tr7.appendChild(edit_main_td7_1);
10324
  edit_main_tr9.appendChild(edit_main_td9);
10325
  edit_main_tr9.appendChild(edit_main_td9_1);
10326
+ edit_main_tr11.appendChild(edit_main_td11);
10327
+ edit_main_tr11.appendChild(edit_main_td11_1);
10328
  edit_main_tr8.appendChild(edit_main_td8);
10329
  edit_main_tr8.appendChild(edit_main_td8_1);
10330
  edit_main_table.appendChild(edit_main_tr1);
10335
  edit_main_table.appendChild(edit_main_tr5);
10336
  edit_main_table.appendChild(edit_main_tr7);
10337
  edit_main_table.appendChild(edit_main_tr9);
10338
+ edit_main_table.appendChild(edit_main_tr11);
10339
  edit_main_table.appendChild(edit_main_tr8);
10340
  edit_div.appendChild(edit_main_table);
10341
 
10346
 
10347
  element='input'; type='text';
10348
  var adding_type = document.createElement("input");
10349
+ adding_type.setAttribute("type", "hidden");
10350
+ adding_type.setAttribute("value", "type_submitter_mail");
10351
+ adding_type.setAttribute("name", i+"_typeform_id_temp");
10352
+ adding_type.setAttribute("id", i+"_typeform_id_temp");
10353
+
10354
+ var adding_autofill = document.createElement("input");
10355
+ adding_autofill.setAttribute("type", "hidden");
10356
+ adding_autofill.setAttribute("value", w_autofill);
10357
+ adding_autofill.setAttribute("name", i+"_autofillform_id_temp");
10358
+ adding_autofill.setAttribute("id", i+"_autofillform_id_temp");
10359
+
10360
  var adding_required = document.createElement("input");
10361
  adding_required.setAttribute("type", "hidden");
10362
  adding_required.setAttribute("value", w_required);
10438
  div_element.appendChild(adding_type);
10439
  div_element.appendChild(adding_required);
10440
  div_element.appendChild(adding_unique);
10441
+ div_element.appendChild(adding_autofill);
10442
  div_element.appendChild(adding);
10443
  div_field.appendChild(div_label);
10444
  div_field.appendChild(div_element);
21886
  w_title = ['', '', '', ''];
21887
  w_mini_labels = ['Title','First','Last','Middle'];
21888
  w_name_fields = ['no', 'no'];
21889
+ type_name(new_id,'Name:', '100', 'left', w_first_val, w_title, w_mini_labels, '100', 'normal', 'no', 'no', '',w_attr_name, w_attr_value, w_name_fields, 'no');
21890
  }
21891
 
21892
  function go_to_type_address(new_id)
21912
  {
21913
  w_attr_name=[];
21914
  w_attr_value=[];
21915
+ type_submitter_mail(new_id,'E-mail:', '100', 'left', '200', '', '', 'no', '', w_attr_name, w_attr_value, 'no');
21916
  }
21917
 
21918
  function go_to_type_time(new_id)
24495
  w_name_title = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('title') : (w_name_format=="normal" ? 'no' : 'yes');
24496
  w_name_middle = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('middle') : (w_name_format=="normal" ? 'no' : 'yes');
24497
  w_name_fields = [w_name_title, w_name_middle];
24498
+ w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
24499
  s=document.getElementById(id+"_element_firstform_id_temp").style.width;
24500
  w_size=s.substring(0,s.length-2);
24501
  atrs=return_attributes(id+'_element_firstform_id_temp');
24503
  w_attr_value=atrs[1];
24504
 
24505
 
24506
+ type_name(id, w_field_label, w_field_label_size, w_field_label_pos,w_first_val, w_title, w_mini_labels, w_size, w_name_format, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_name_fields,w_autofill);break;
24507
  }
24508
 
24509
  case 'type_address':
24570
  {
24571
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
24572
  w_title=document.getElementById(id+"_elementform_id_temp").title;
24573
+ w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
24574
  atrs=return_attributes(id+'_elementform_id_temp');
24575
  w_attr_name=atrs[0];
24576
  w_attr_value=atrs[1];
24577
+ type_submitter_mail(id, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_autofill); break;
24578
  }
24579
  case 'type_checkbox':
24580
  {
25330
  w_name_title = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('title') : (w_name_format=="normal" ? 'no' : 'yes');
25331
  w_name_middle = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('middle') : (w_name_format=="normal" ? 'no' : 'yes');
25332
  w_name_fields = [w_name_title, w_name_middle];
25333
+ w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
25334
  s=document.getElementById(id+"_element_firstform_id_temp").style.width;
25335
  w_size=s.substring(0,s.length-2);
25336
  atrs=return_attributes(id+'_element_firstform_id_temp');
25337
  w_attr_name=atrs[0];
25338
  w_attr_value=atrs[1];
25339
 
25340
+ type_name(gen, w_field_label, w_field_label_size, w_field_label_pos,w_first_val, w_title, w_mini_labels, w_size, w_name_format, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_name_fields, w_autofill);break;
25341
  }
25342
 
25343
  case 'type_address':
25404
  {
25405
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
25406
  w_title=document.getElementById(id+"_elementform_id_temp").title;
25407
+ w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
25408
  atrs=return_attributes(id+'_elementform_id_temp');
25409
  w_attr_name=atrs[0];
25410
  w_attr_value=atrs[1];
25411
+ type_submitter_mail(gen, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_autofill); break;
25412
  }
25413
  case 'type_checkbox':
25414
  {
26180
  w_name_title = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('title') : (w_name_format=="normal" ? 'no' : 'yes');
26181
  w_name_middle = document.getElementById(id+'_enable_fieldsform_id_temp') ? document.getElementById(id+'_enable_fieldsform_id_temp').getAttribute('middle') : (w_name_format=="normal" ? 'no' : 'yes');
26182
  w_name_fields = [w_name_title, w_name_middle];
26183
+ w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
26184
  s=document.getElementById(id+"_element_firstform_id_temp").style.width;
26185
  w_size=s.substring(0,s.length-2);
26186
  atrs=return_attributes(id+'_element_firstform_id_temp');
26204
  form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
26205
  }
26206
  form_fields+=w_name_fields.join('***')+"*:*w_name_fields*:*";
26207
+ form_fields+=w_autofill+"*:*w_autofill*:*";
26208
  form_fields+="*:*new_field*:*";
26209
  break;
26210
  }
26288
  {
26289
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
26290
  w_title=document.getElementById(id+"_elementform_id_temp").title;
26291
+ w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
26292
+
26293
  atrs=return_attributes(id+'_elementform_id_temp');
26294
  w_attr_name=atrs[0];
26295
  w_attr_value=atrs[1];
26308
  {
26309
  form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
26310
  }
26311
+ form_fields+=w_autofill+"*:*w_autofill*:*";
26312
  form_fields+="*:*new_field*:*";
26313
  break;
26314
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha, pdf, mysql
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.8.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -302,6 +302,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
302
 
303
  == Changelog ==
304
 
 
 
 
305
  = 1.8.19 =
306
  Changed: Back End design
307
 
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, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha, pdf, mysql
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.8.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
302
 
303
  == Changelog ==
304
 
305
+ = 1.8.20 =
306
+ Added: Autofill with user data for email address and name fields
307
+
308
  = 1.8.19 =
309
  Changed: Back End design
310