Title: [Plugin: Custom Field Template] Multiple fieldsets delete data
Last modified: August 19, 2016

---

# [Plugin: Custom Field Template] Multiple fieldsets delete data

 *  [jdkoelsch](https://wordpress.org/support/users/jdkoelsch/)
 * (@jdkoelsch)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/)
 * I think I have fieldsets set up correctly, so that a user may enter one or more
   sets of data about a product. Everything works well until the user enters the
   third product data set. Upon updating the page, most of the data for those fieldsets
   is lost. In the database, the fieldset count is correct and the number of fields
   for that post_id is correct, but the meta_value for the second and third set 
   is empty.
 * Here is the fieldset configuration:
    [product_model] type = fieldset_open multiple
   = true multipleButton = true legend = Configuration Models & Descriptions
 * [product_model_name]
    type = textfield size = 35 label = Model Name blank = true
 * [product_model_description]
    type=textarea rows = 4 cols = 80 label = Model Description
   blank = true
 * [product_model]
    type = fieldset_close
 * I configured the fieldset based on the info provided by [@proximity2008](https://wordpress.org/support/users/proximity2008/)
   in this post:
    [http://wordpress.org/support/topic/plugin-custom-field-template-unique-id-of-each-instance-of-a-multiple-field?replies=5](http://wordpress.org/support/topic/plugin-custom-field-template-unique-id-of-each-instance-of-a-multiple-field?replies=5)
 * He mentions that he has found it to be buggy too — we may have run into the same
   problem. Has anyone found a solution to this or come up with a different way 
   to provide this functionality?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Kevin Leary](https://wordpress.org/support/users/kevinlearynet/)
 * (@kevinlearynet)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790276)
 * Disabling the Auto Save feature may do the trick. It’s under **Global Settings
   > In case that you would like to save values automatically in switching templates:**.
 *  Thread Starter [jdkoelsch](https://wordpress.org/support/users/jdkoelsch/)
 * (@jdkoelsch)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790279)
 * Thanks for the reply. I disabled it when I first started configuring the custom
   post type pages.
 * At this point, I’m going to remove the fieldset functionality until I have a 
   chance to debug the plugin. If I find anything I’ll be sure to post pack to this
   thread.
 *  [djanym](https://wordpress.org/support/users/djanym/)
 * (@djanym)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790341)
 * is there some other plugin with multiple file uploading or with fieldsets feature?
 *  [Kevin Leary](https://wordpress.org/support/users/kevinlearynet/)
 * (@kevinlearynet)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790342)
 * [Simple Fields](http://wordpress.org/extend/plugins/simple-fields/) looks promising,
   though I can’t say I have any experience working with it.
 *  [djanym](https://wordpress.org/support/users/djanym/)
 * (@djanym)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790343)
 * I’ve tried Simple Fields, but it seems to be buggy… And as the author himself
   writes that it’s not completed yet.
    So, I had to write myself a solution to 
   this problem. I posted detailed instructions from start to finish on my [blog](http://lab.ixblogs.com/multiple-fieldsets-reshenie-problemyi-dlya-wordpress/).
   But there is in Russian. So here I am writing for those who do not know Russian.)
   First, the fields of the type “file” – don’t put the option “blank = true”. This
   is one reason that the files are not stored. Secondly, we must add the following
   code to the plugin. In the file plugin custom-field-template/custom-field-template.
   php find the row 2641 and after – add the following code: `$temp[$name] = $data['
   parentSN'];` You should get something like this:
 *     ```
       if ($data['type'] == 'file'):
       $temp[$name] = $data['parentSN'];
       ```
   
 * Further, after line 2678 add the following code:
    `if ($temp) foreach ($temp 
   as $key => $psn) $_REQUEST[$key][$psn] = $save_value[$key];` That’s all. Anyway,
   there are still some bugs with adding / removing files, but in general it should
   work.
 *  [Kevin Leary](https://wordpress.org/support/users/kevinlearynet/)
 * (@kevinlearynet)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790348)
 * As of 2/10 the plugin author has updated the plugin to address fieldset issues:
 * _Bugfix: multiple options for the fieldset type._
 * Can anyone verify that this issue is resolved?
 *  [Alexey](https://wordpress.org/support/users/asel/)
 * (@asel)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790365)
 * Hi **jdkoelsch**, did you find any solution?
    i have the same problem now 🙁
 *  [djanym](https://wordpress.org/support/users/djanym/)
 * (@djanym)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790366)
 * > Can anyone verify that this issue is resolved?
 * No, it’s still does not working…
 *  [djanym](https://wordpress.org/support/users/djanym/)
 * (@djanym)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790384)
 * any new solution?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘[Plugin: Custom Field Template] Multiple fieldsets delete data’ is closed
to new replies.

 * ![](https://ps.w.org/custom-field-template/assets/icon-256x256.png?rev=1966286)
 * [Custom Field Template](https://wordpress.org/plugins/custom-field-template/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-field-template/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-template/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-template/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-template/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-template/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [djanym](https://wordpress.org/support/users/djanym/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-multiple-fieldsets-delete-data/#post-1790384)
 * Status: not resolved