Contact Form Entries – Contact Form 7, WPforms and more - Version 1.1.4

Version Description

  • fixed contact form 7 dropdown field.
Download this release

Release Info

Developer CRMPerks
Plugin Icon 128x128 Contact Form Entries – Contact Form 7, WPforms and more
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.4

Files changed (3) hide show
  1. contact-form-entries.php +149 -23
  2. readme.txt +20 -4
  3. templates/view.php +1 -1
contact-form-entries.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Plugin Name: Contact Form Entries
4
- * Description: Save form submissions to the database from <a href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a>, <a href="https://wordpress.org/plugins/jetpack/">JetPack Contact Form</a>, <a href="https://wordpress.org/plugins/ninja-forms/">Ninja Forms</a>, <a href="https://wordpress.org/plugins/formidable/">Formidable Forms</a>, <a href="http://codecanyon.net/item/quform-wordpress-form-builder/706149">Quform</a>, <a href="https://wordpress.org/plugins/cforms2/">cformsII</a>, <a href="https://wordpress.org/plugins/contact-form-plugin/">Contact Form by BestWebSoft</a>, <a href="https://wordpress.org/plugins/ultimate-form-builder-lite/">Ultimate Form Builder</a> and <a href="https://wordpress.org/plugins/wpforms-lite/">WP Forms</a>.
5
- * Version: 1.1.2
6
  * Requires at least: 3.8
7
- * Tested up to: 5.4
8
  * Author URI: https://www.crmperks.com
9
  * Plugin URI: https://www.crmperks.com/plugins/contact-form-plugins/crm-perks-forms/
10
  * Author: CRM Perks
@@ -26,7 +26,7 @@ class vxcf_form {
26
  public static $type = "vxcf_form";
27
  public static $path = '';
28
 
29
- public static $version = '1.1.2';
30
  public static $upload_folder = 'crm_perks_uploads';
31
  public static $db_version='';
32
  public static $base_url='';
@@ -73,13 +73,12 @@ wp_register_script( 'vx-tablesorter-js', self::$base_url. 'js/jquery.tablesorter
73
  wp_register_script( 'vx-tablepager-js', self::$base_url. 'js/jquery.tablesorter.pager.js',array('jquery') );
74
  wp_register_script( 'vx-tablewidgets-js', self::$base_url. 'js/jquery.tablesorter.widgets.js',array('jquery') );
75
 
76
- //$fields=$this->get_form_fields('wp_118');
77
- //$form=cfx_form::get_form('1'); var_dump($form['fields']); die();
 
78
  }
79
 
80
  public function setup_main(){
81
-
82
-
83
  //handling post submission.
84
  // add_action("gform_entry_created", array($this, 'gf_entry_created'), 40, 2);
85
  // add_filter('wpcf7_mail_components', array($this, 'submission'), 999, 3);
@@ -104,7 +103,8 @@ public function setup_main(){
104
  add_action( 'wpforms_process_entry_save',array(&$this,'create_entry_wp'), 30, 4 );
105
  // add_action('cntctfrm_get_attachment_data', array(&$this, 'create_entry_be'),30);
106
  // add_filter('si_contact_email_fields_posted', array($this, 'test'),10,2);
107
-
 
108
  // add_action('wpcf7_submit', array($this, 'submit'),10, 2);
109
  //add_action('wpcf7_init', array($this, 'create_entry'));
110
  //$this->create_entry();
@@ -114,19 +114,13 @@ add_shortcode('vx-entries', array($this, 'entries_shortcode'));
114
  load_plugin_textdomain('contact-form-entries', FALSE, self::plugin_dir_name(). '/languages/' );
115
  self::$db_version=get_option(vxcf_form::$type."_version");
116
  if(self::$db_version != self::$version && current_user_can( 'manage_options' )){
117
- $data=vxcf_form::get_data_object();
118
- $data->update_table();
119
 
 
120
 
121
  /* $install_data=get_option(vxcf_form::$type."_install_data");
122
  if(empty($install_data)){
123
  update_option(vxcf_form::$type."_install_data", array('time'=>current_time( 'timestamp' , 1 )));
124
  }*/
125
-
126
- require_once(self::$path . "includes/install.php");
127
- $install=new vxcf_form_install();
128
- $install->create_roles();
129
- $install->create_upload_dir();
130
  $meta=$this->get_meta();
131
  if(!empty($meta['save_forms'])){
132
  $forms=vxcf_form::get_forms();
@@ -142,11 +136,7 @@ if(!empty($new_ids)){
142
  self::$meta=$meta;
143
  update_option(vxcf_form::$id.'_meta',$meta);
144
  }
145
- }
146
-
147
- update_option(vxcf_form::$type."_version", self::$version);
148
-
149
- }
150
  //plugin api
151
  $this->plugin_api(true);
152
  require_once(self::$path . "includes/crmperks-cf.php");
@@ -191,6 +181,17 @@ self::$plugin->instance();
191
  } }
192
  }
193
  }
 
 
 
 
 
 
 
 
 
 
 
194
  public function entries_shortcode($atts){
195
 
196
  $form_id='';
@@ -417,6 +418,7 @@ $entry_id=$data->get_vis_info_of_day($vis_id,$form_id,'1');
417
  }
418
  $main['type']='0'; $main['is_read']='0';
419
  $entry_id=$this->create_update_lead($lead,$main,$entry_id);
 
420
  }
421
 
422
  /*
@@ -573,6 +575,54 @@ if(!empty($form_data['fields']['settings']['form_title'])){
573
  $form_arr['name']=$form_data['fields']['settings']['form_title'];
574
  }
575
  $this->create_entry($lead,$form_arr,'wp','',$track);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
576
  }
577
  //var_dump($fields); die();
578
  }
@@ -1466,7 +1516,7 @@ public function uninstall(){
1466
  */
1467
  public function activate(){
1468
  $this->plugin_api(true);
1469
-
1470
  do_action('plugin_status_'.vxcf_form::$type,'activate');
1471
  }
1472
  /**
@@ -1573,7 +1623,7 @@ public static function get_forms(){
1573
  // function submission($components, $contact_form, $mail)
1574
  //prepare list of contact forms --
1575
  /// *NOTE* CF7 changed how it stores forms at some point, support legacy?
1576
- //$all_forms=get_option('vxcf_all_forms',array()); //disable saving forms
1577
  $all_forms=array();
1578
 
1579
  if(!is_array($all_forms)){
@@ -1634,6 +1684,10 @@ $forms =cfx_form::get_forms();
1634
  }
1635
  ///////
1636
  }
 
 
 
 
1637
  if(class_exists('GFFormsModel')){
1638
  $gf_forms=GFFormsModel::get_forms();
1639
  $forms_arr=array();
@@ -1843,12 +1897,17 @@ if(is_array($tags)){
1843
  if(is_object($tag)){ $tag=(array)$tag; }
1844
 
1845
  if(!empty($tag['name'])){
 
1846
  $id=str_replace(' ','',$tag['name']);
1847
  $field=array('name'=>$id);
1848
  $field['label']=ucwords(str_replace(array('-','_')," ",$tag['name']));
1849
  $field['type_']=$tag['type'];
1850
  $field['type']=$tag['basetype'];
1851
  $field['req']=strpos($tag['type'],'*') !==false ? 'true' : '';
 
 
 
 
1852
  if(!empty($tag['raw_values'])){
1853
  $ops=array();
1854
  foreach($tag['raw_values'] as $v){
@@ -2151,6 +2210,58 @@ case'vxad':
2151
  }
2152
 
2153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2154
  break;
2155
  case'vf':
2156
  if(method_exists('cfx_form','get_form')){
@@ -2674,6 +2785,21 @@ $extra_keys=array('vxbrowser'=>'browser','vxurl'=>'url','vxscreen'=>'screen','vx
2674
  }
2675
  fclose($fp);
2676
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2677
  }
2678
  public function vx_id(){
2679
  $vx_id='';
1
  <?php
2
  /**
3
  * Plugin Name: Contact Form Entries
4
+ * Description: Save form submissions to the database from <a href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a>, <a href="https://wordpress.org/plugins/ninja-forms/">Ninja Forms</a>, <a href="https://wordpress.org/plugins/formidable/">Formidable Forms</a>, <a href="https://elementor.com/widgets/form-widget/">Elementor Forms</a> and <a href="https://wordpress.org/plugins/wpforms-lite/">WP Forms</a>.
5
+ * Version: 1.1.4
6
  * Requires at least: 3.8
7
+ * Tested up to: 5.5
8
  * Author URI: https://www.crmperks.com
9
  * Plugin URI: https://www.crmperks.com/plugins/contact-form-plugins/crm-perks-forms/
10
  * Author: CRM Perks
26
  public static $type = "vxcf_form";
27
  public static $path = '';
28
 
29
+ public static $version = '1.1.4';
30
  public static $upload_folder = 'crm_perks_uploads';
31
  public static $db_version='';
32
  public static $base_url='';
73
  wp_register_script( 'vx-tablepager-js', self::$base_url. 'js/jquery.tablesorter.pager.js',array('jquery') );
74
  wp_register_script( 'vx-tablewidgets-js', self::$base_url. 'js/jquery.tablesorter.widgets.js',array('jquery') );
75
 
76
+ //$form=vxcf_form::get_form_fields('el_2669e21_5190');
77
+ //$form=cfx_form::get_form('1'); var_dump($form); die();
78
+
79
  }
80
 
81
  public function setup_main(){
 
 
82
  //handling post submission.
83
  // add_action("gform_entry_created", array($this, 'gf_entry_created'), 40, 2);
84
  // add_filter('wpcf7_mail_components', array($this, 'submission'), 999, 3);
103
  add_action( 'wpforms_process_entry_save',array(&$this,'create_entry_wp'), 30, 4 );
104
  // add_action('cntctfrm_get_attachment_data', array(&$this, 'create_entry_be'),30);
105
  // add_filter('si_contact_email_fields_posted', array($this, 'test'),10,2);
106
+ //elemntor form
107
+ add_action( 'elementor_pro/forms/new_record', array($this,'create_entry_el'), 10 );
108
  // add_action('wpcf7_submit', array($this, 'submit'),10, 2);
109
  //add_action('wpcf7_init', array($this, 'create_entry'));
110
  //$this->create_entry();
114
  load_plugin_textdomain('contact-form-entries', FALSE, self::plugin_dir_name(). '/languages/' );
115
  self::$db_version=get_option(vxcf_form::$type."_version");
116
  if(self::$db_version != self::$version && current_user_can( 'manage_options' )){
 
 
117
 
118
+ $this->install_plugin();
119
 
120
  /* $install_data=get_option(vxcf_form::$type."_install_data");
121
  if(empty($install_data)){
122
  update_option(vxcf_form::$type."_install_data", array('time'=>current_time( 'timestamp' , 1 )));
123
  }*/
 
 
 
 
 
124
  $meta=$this->get_meta();
125
  if(!empty($meta['save_forms'])){
126
  $forms=vxcf_form::get_forms();
136
  self::$meta=$meta;
137
  update_option(vxcf_form::$id.'_meta',$meta);
138
  }
139
+ } }
 
 
 
 
140
  //plugin api
141
  $this->plugin_api(true);
142
  require_once(self::$path . "includes/crmperks-cf.php");
181
  } }
182
  }
183
  }
184
+
185
+ public function install_plugin(){
186
+ $data=vxcf_form::get_data_object();
187
+ $data->update_table();
188
+ if(empty(self::$path)){ self::$path=$this->get_base_path(); }
189
+ require_once(self::$path . "includes/install.php");
190
+ $install=new vxcf_form_install();
191
+ $install->create_roles();
192
+ $install->create_upload_dir();
193
+ update_option(vxcf_form::$type."_version", self::$version);
194
+ }
195
  public function entries_shortcode($atts){
196
 
197
  $form_id='';
418
  }
419
  $main['type']='0'; $main['is_read']='0';
420
  $entry_id=$this->create_update_lead($lead,$main,$entry_id);
421
+
422
  }
423
 
424
  /*
575
  $form_arr['name']=$form_data['fields']['settings']['form_title'];
576
  }
577
  $this->create_entry($lead,$form_arr,'wp','',$track);
578
+ }
579
+ //var_dump($fields); die();
580
+ }
581
+ public function create_entry_el( $record){
582
+ if(empty(self::$is_pr)){ return; }
583
+ $data=$record->get_formatted_data();
584
+ $form_id_p=$this->post('form_id');
585
+ $post_id_p=$this->post('post_id');
586
+
587
+ $form_id=$form_id_p.'_'.$post_id_p;
588
+ $track=$this->track_form_entry('el',$form_id);
589
+ $fields=self::get_form_fields('el_'.$form_id);
590
+ $upload_files=$lead=array();
591
+ if(!empty($fields)){
592
+ foreach($fields as $v){
593
+ if(isset($data[$v['label']])){
594
+ $val=$data[$v['label']];
595
+ if($v['type'] == 'upload'){
596
+ $upload_files[$v['id']]=$val;
597
+ }else{
598
+
599
+ if(in_array($v['type'],array('checkbox','multiselect'))){
600
+ $val=array_map('trim',explode(',',$val));
601
+ }
602
+ $lead[$v['id']]=$val;
603
+ } } }
604
+ if($track){
605
+ $upload_files=$this->copy_files($upload_files);
606
+ }
607
+ if(is_array($upload_files)){
608
+ foreach($upload_files as $k=>$v){
609
+ $lead[$k]=$v;
610
+ } }
611
+ //var_dump($lead,$data); die();
612
+ $form_arr=array('id'=>$form_id,'name'=>'Elementor Forms','fields'=>$fields);
613
+
614
+ $all_forms=get_option('vxcf_all_forms',array());
615
+ if(!isset($all_forms['el'])){
616
+ $all_forms['el']=array('label'=>'Elementor Forms','forms'=>array());
617
+ }
618
+
619
+ if(!isset($all_forms['el']['forms'][$form_id])){
620
+ $all_forms['el']['forms'][$form_id]='Post '.$post_id_p.' Form #'.$form_id_p;
621
+ update_option('vxcf_all_forms',$all_forms);
622
+ }
623
+
624
+ $this->create_entry($lead,$form_arr,'el','',$track);
625
+
626
  }
627
  //var_dump($fields); die();
628
  }
1516
  */
1517
  public function activate(){
1518
  $this->plugin_api(true);
1519
+ $this->install_plugin();
1520
  do_action('plugin_status_'.vxcf_form::$type,'activate');
1521
  }
1522
  /**
1623
  // function submission($components, $contact_form, $mail)
1624
  //prepare list of contact forms --
1625
  /// *NOTE* CF7 changed how it stores forms at some point, support legacy?
1626
+ $all_forms_db=get_option('vxcf_all_forms',array()); //disable saving forms
1627
  $all_forms=array();
1628
 
1629
  if(!is_array($all_forms)){
1684
  }
1685
  ///////
1686
  }
1687
+
1688
+ if(!empty($all_forms_db['el'])){
1689
+ $all_forms['el']=$all_forms_db['el'];
1690
+ }
1691
  if(class_exists('GFFormsModel')){
1692
  $gf_forms=GFFormsModel::get_forms();
1693
  $forms_arr=array();
1897
  if(is_object($tag)){ $tag=(array)$tag; }
1898
 
1899
  if(!empty($tag['name'])){
1900
+
1901
  $id=str_replace(' ','',$tag['name']);
1902
  $field=array('name'=>$id);
1903
  $field['label']=ucwords(str_replace(array('-','_')," ",$tag['name']));
1904
  $field['type_']=$tag['type'];
1905
  $field['type']=$tag['basetype'];
1906
  $field['req']=strpos($tag['type'],'*') !==false ? 'true' : '';
1907
+
1908
+ if($field['type'] == 'select' && !empty($tag['options']) && array_search('multiple',$tag['options'])!== false){
1909
+ $field['type']='multiselect';
1910
+ }
1911
  if(!empty($tag['raw_values'])){
1912
  $ops=array();
1913
  foreach($tag['raw_values'] as $v){
2210
  }
2211
 
2212
 
2213
+ break;
2214
+ case'el':
2215
+
2216
+ if(isset($form_arr[2])){
2217
+ $post_id=$form_arr[2];
2218
+ $forms=get_post_meta($post_id,'_elementor_data',true);
2219
+ $forms=json_decode($forms,true);
2220
+ if(!empty($forms)){
2221
+ $form=self::find_el_form($forms,$id);
2222
+ $fields=array();
2223
+ if(!empty($form['form_fields'])){
2224
+ foreach($form['form_fields'] as $tag){
2225
+ if(!empty($tag['custom_id']) && !in_array($tag['field_type'],array('html','step','honeypot','recaptcha','recaptcha_v3'))){
2226
+ $field=array('id'=>$tag['custom_id']);
2227
+ $field['name']=$tag['custom_id'];
2228
+ $field['label']=$tag['field_label'];
2229
+ $field['type']=$tag['field_type'];
2230
+ $field['req']=!empty($tag['required']) ? 'true' : '';
2231
+ if(!empty($tag['allow_multiple']) ){
2232
+ $field['type']='multiselect';
2233
+ }
2234
+ if($field['type'] == 'acceptance'){
2235
+ $field['type']='checkbox';
2236
+ }
2237
+ if($field['type'] == 'upload'){
2238
+ $field['type']='file';
2239
+ }
2240
+ if(!empty($tag['field_options'])){
2241
+ $opts_array=explode("\n",$tag['field_options']);
2242
+ $ops=array();
2243
+ foreach($opts_array as $v){
2244
+ $v_arr=explode('|',$v);
2245
+ if(!isset($v_arr[1])){ $v_arr[1]=$v_arr[0]; }
2246
+ $ops[]=array('label'=>$v_arr[0],'value'=>$v_arr[1]);
2247
+ }
2248
+ $field['values']=$ops;
2249
+ }
2250
+ $fields[$tag['custom_id']]=$field;
2251
+ }
2252
+ }
2253
+ }
2254
+ }
2255
+
2256
+ }
2257
+ break;
2258
+ case'vxad':
2259
+ global $vxcf_crm;
2260
+ if(method_exists($vxcf_crm,'get_form_fields')){
2261
+ $fields=$vxcf_crm->get_form_fields(true);
2262
+ }
2263
+
2264
+
2265
  break;
2266
  case'vf':
2267
  if(method_exists('cfx_form','get_form')){
2785
  }
2786
  fclose($fp);
2787
 
2788
+ }
2789
+ public static function find_el_form($var,$key=''){
2790
+
2791
+ if(is_array($var) && isset($var[0]) ){
2792
+ foreach($var as $v){
2793
+ if (!empty($v['elements']) && is_array( $v['elements'] ) ) {
2794
+ $se=self::find_el_form($v['elements'],$key);
2795
+ if(!empty($se)){ return $se; }
2796
+ }
2797
+ if($v['id'] == $key){ // var_dump($v); echo '----<hr>';
2798
+ return $v['settings'];
2799
+ }
2800
+ }
2801
+
2802
+ }
2803
  }
2804
  public function vx_id(){
2805
  $vx_id='';
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: crmperks, sbazzi
3
  Tags: contact form 7, contact form 7 database, contact form db, save contact form, wpforms database
4
  Requires at least: 3.8
5
- Tested up to: 5.4
6
- Stable tag: 1.1.2
7
- Version: 1.1.2
8
  Requires PHP: 5.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -20,6 +20,7 @@ Contact Form 7 Entries Plugin automatically saves form submissions from Contact
20
  * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
21
  * [CRM Perks Forms](https://wordpress.org/plugins/crm-perks-forms/)
22
  * [WP Forms](https://wordpress.org/plugins/wpforms-lite/)
 
23
 
24
  == Contact form 7 entries features ==
25
 
@@ -67,6 +68,7 @@ You can add notes to any contact form entry and you can edit old notes. Also you
67
  <p>Following features are available in premium add-ons <a href="https://www.crmperks.com/plugins/contact-form-plugins/crm-forms/?utm_source=wordpress&utm_medium=directory&utm_campaign=readme">Get all add-ons and CRM Perks forms</a>.</p>
68
  <ul>
69
  <li>Don't miss out on any potential leads. Collect data in real time as it is entered on your forms.</li>
 
70
  <li>Search field and Download CSV button for front end entries table.</li>
71
  <li>Google Analytics Parameters and Geolocation of a visitor who submitted the form.</li>
72
  <li>Lookup lead's email and phone using email and phone lookup apis.</li>
@@ -144,6 +146,13 @@ Yes, You can search contact form 7 submissions by a specific field or all fields
144
  * When anyone submits a form, it will be saved in wordpress database.
145
  * You can view all form submissions in wordpress from "CRM Entries" menu.
146
 
 
 
 
 
 
 
 
147
  = How can i restrict plugin storing IP address and User Agent =
148
 
149
  You can select this in plugin settings.
@@ -193,7 +202,8 @@ from main wordpress menu select "CRM Entries" then you can view any entry.
193
 
194
  * Install our entries plugin for saving WPforms submissions to database.
195
  * Plugin automatically saves all WPforms entries in wordpress database.
196
- * You can add notes and send emails to WPforms entries.
 
197
 
198
  = CRM Entries Plugin =
199
 
@@ -217,6 +227,12 @@ Contact form 7 entries plugin allows you to save contact form 7 entries to local
217
 
218
  == Changelog ==
219
 
 
 
 
 
 
 
220
  = 1.1.2 =
221
  * fixed "timestamp" on front end entries.
222
 
2
  Contributors: crmperks, sbazzi
3
  Tags: contact form 7, contact form 7 database, contact form db, save contact form, wpforms database
4
  Requires at least: 3.8
5
+ Tested up to: 5.5
6
+ Stable tag: 1.1.4
7
+ Version: 1.1.4
8
  Requires PHP: 5.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
20
  * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
21
  * [CRM Perks Forms](https://wordpress.org/plugins/crm-perks-forms/)
22
  * [WP Forms](https://wordpress.org/plugins/wpforms-lite/)
23
+ * [Elementor Forms](https://elementor.com/widgets/form-widget/) (Premium feature)
24
 
25
  == Contact form 7 entries features ==
26
 
68
  <p>Following features are available in premium add-ons <a href="https://www.crmperks.com/plugins/contact-form-plugins/crm-forms/?utm_source=wordpress&utm_medium=directory&utm_campaign=readme">Get all add-ons and CRM Perks forms</a>.</p>
69
  <ul>
70
  <li>Don't miss out on any potential leads. Collect data in real time as it is entered on your forms.</li>
71
+ <li>Save Elementor Forms submissions in database.</li>
72
  <li>Search field and Download CSV button for front end entries table.</li>
73
  <li>Google Analytics Parameters and Geolocation of a visitor who submitted the form.</li>
74
  <li>Lookup lead's email and phone using email and phone lookup apis.</li>
146
  * When anyone submits a form, it will be saved in wordpress database.
147
  * You can view all form submissions in wordpress from "CRM Entries" menu.
148
 
149
+
150
+ = Elementor forms database =
151
+
152
+ * Install our elementor contact form entries plugin for saving form submissions to database.
153
+ * Plugin automatically saves all elementor forms entries in wordpress database.
154
+ * You can add notes and send emails to elementor forms entries.
155
+
156
  = How can i restrict plugin storing IP address and User Agent =
157
 
158
  You can select this in plugin settings.
202
 
203
  * Install our entries plugin for saving WPforms submissions to database.
204
  * Plugin automatically saves all WPforms entries in wordpress database.
205
+ * You can add notes and send emails to WPforms entries.
206
+
207
 
208
  = CRM Entries Plugin =
209
 
227
 
228
  == Changelog ==
229
 
230
+ = 1.1.4 =
231
+ * fixed contact form 7 dropdown field.
232
+
233
+ = 1.1.3 =
234
+ * added elementor forms support.
235
+
236
  = 1.1.2 =
237
  * fixed "timestamp" on front end entries.
238
 
templates/view.php CHANGED
@@ -480,7 +480,7 @@ else if(in_array($type,array('checkbox','radio'))){
480
  }
481
  }
482
  $n=$type == 'checkbox' ? "lead[{$f_name}][]" : "lead[$f_name]";
483
- $check='';
484
  // if(!empty($value)){
485
  if((is_array($value)&& in_array($val,$value)) || (!is_array($value) && $val == $value)){
486
  $check='checked="checked"';
480
  }
481
  }
482
  $n=$type == 'checkbox' ? "lead[{$f_name}][]" : "lead[$f_name]";
483
+ $check=''; //var_dump($val,$value);
484
  // if(!empty($value)){
485
  if((is_array($value)&& in_array($val,$value)) || (!is_array($value) && $val == $value)){
486
  $check='checked="checked"';