This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
No. of entry do not change after copy
Started 16 years ago by candy | 2 posts |
- 
		
		
	
		
		
		Hi, 
 i have duplicated my first form to have a litte template for my second one.
 The problem is, if i delete all entries from one of the forms, the script count further.example: before: 
 3. Mr. Padding
 2. Mrs. Test
 1. Mr. Smithafter i have delete all entries: 
 It's starts with the 4th entry.The bug is in both forms! Please help me. Thank you //UPDATE: 
 I have for a test, the entries of both forms deleted. The freaky thing is, if I fill in both form, the 2.form starts with No.5 and the 1.form starts with No.1. Realy freaky.//UPDATE2: 
 After the test I have deleted all entries of both forms. And it works.Is it a coincidence? -------------------------------------------- 
 2.Question:The user get the confirming mail in the following order by the address: address_city, address_state address_zip but I want to have it like this: 
 address_zip address_city - address_stateI can not find any line to modify it. Posted 16 years ago #
- 
		
		
		
		
		1) Actually this is not a bug. It was designed that way for a purpose, so that each of your form entries has their own unique entry id (not just sequential number). If you need to reset the entry id after complete deletion, edit your "manage_entries.php", search line 43 for this code: do_query("truncate <code>ap_form_{$form_id}</code>");below that code, add this: do_query("alter table <code>ap_form_{$form_id}</code> AUTO_INCREMENT = 1");2) Simply modify line 314 of "includes/entry-functions.php". This line: $entry_details[$i]['value'] = $entry_data['element_'.$element_id.'_1'].' '.$entry_data['element_'.$element_id.'_2']. '<br />'. $entry_data['element_'.$element_id.'_3'].' '.$entry_data['element_'.$element_id.'_4'].' '.$entry_data['element_'.$element_id.'_5']. '<br />'. $entry_data['element_'.$element_id.'_6'];rearrange element 3,4,5 MachForm Founder Posted 16 years ago #
Reply
You must log in to post.

