Hi,
Is there a way to duplicate a form along with the underlying data? I guess I will have to manually duplicate some database tables and make some code changes.
Thanks in advance.
Started 3 years ago by raj000 | 4 posts |
Hi,
Is there a way to duplicate a form along with the underlying data? I guess I will have to manually duplicate some database tables and make some code changes.
Thanks in advance.
Yes, this one is pretty simple.
Edit your manage_form.php, search around line 310 and you'll find this code:
//create the new table
do_query("create table ap_form_{$new_form_id} like ap_form_{$form_id}");
right below that code, add this code:
do_query("insert into ap_form_{$new_form_id}
select * from ap_form_{$form_id}");
that should do it.
MachForm Founder
Thanks for your reply.
So I just make the above changes and thats it? I dont have to manually copy any database tables, it will do whatever is required on its own?
ahhhh..worked brilliantly...thanks
You must log in to post.