Hi, I need to add to Object1 CustomFields additional repeated Object2 CustomFields. For example to each "House info" add "Floors details" which can be repeated 1-2-3-10 times. Both objects(MetaBoxes) must be stored at DBCustomTables. How is it possible with your plugin to:
- or A) to MetaBox1 "Houses" stored at DBCustomTable add Repeated MetaBox2 "Floors" stored at DBCustomTable?
- or B) to CustomPostType "Houses" add MetaBox1 "House" once per post and MetaBox2 "Floors" as repeated as many times as needed?
It's the cloneable field and custom table, it is possible to have two cases like that. You can read more in the documentation
Yes, I've read both those articles. There is NO info of how make ReapeatedCustomFieldsGroup which data will be stored at another CustomTable as 1 field = 1 value, WITHOUT ARRAYS etc mess! And then how to link them to another CustomFields/CustomPost?
1. At your documentation there is lack of visual samples of how to create a Group via Dashboard Builder.
Will be nice to add screenshot with choosing a new Group field at Dashboard Builder with text: "To create a Group via visual builder you need to create a new CustomField "Group"".
2. If at MB Group "Field ID, will be used to store custom field values of all sub-field as 1 array." - its NOT what I asking for at this topic!
2a) How to use MB Groups ONLY for visual fields grouping, but continue to save their sub-fields values into the same main CustomTable one-by-one without Values grouping? Maybe I would use the field "Heading" for such purpose, but it can not make the next CustomFields collapsible unfortunately.
2b) How to save MB Groups sub-fields values into another standalone CustomTable one-by-one without Values grouping?
2c) Or how to add to current MetaBox CustomFields all CustomFields from another MetaBox+CustomTable and make it repeatable and store each repeating at DB as 1 new record?
For example firstly I've create MetaBox+CustomTable "Floors" with for example 10 CustomFields. Next I creating MetaBox+CustomTable "Houses" and want to add to "Houses" CustomFields "Floors" with repeating possibility. All CustomFields "Houses" must be saved at its own CustomTable "Houses". All CustomFields "Floors" must be saved at its own CustomTable "Floors". And each Value must be independent - 1 DB column = 1 value!
How to make it??
It seems that you need to add a new field to your plugin MetaBox - MetaBox! 😀
Which will gives a such possibility to any MetaBox1 CustomFields insert any other MetaBox2 all CustomFields with possibility to repeat them as many as user needs. And of course to save each MetaBox2 values on-by-one to DB columns by creating a new record for each MetaBox2 repeating.
Suppose it must be added to your payable CustomTables plugin.
PS BTW option "repeat MetaBox" (repeat all CustomFields of MetaBox with saving at DB add 1-2-3-10 records) you can add to MetaBox settings.
Thanks for your feedback.
Currently, it's not possible to save each subfield value (in a group) to a separate column in the custom table. It will be saved to one column which is the
group field ID.
For the cloneable field, if you do not add the max clones, the cloneable is unlimited. Please check this screenshot https://imgur.com/8sgrjvs
You must understand that such method is ABSOLUTELY WRONG at DB correct structure - because of messy groups arrays! To keep your data storing correct and easy accessible - each 1 field must store 1 value-data at 1 DB column. it's a fundamental rule! To follow this rule for repeated fields - there is the ONLY ONE correct solution - to store all repeated data at standalone DB CustomTable. Thats all.
Thus you make it and also resolve that also important shotcoming:
You need just to:
I) Add possibility for MetaBoxes stored at CustomTables (also named as CustomModels) to display/add/edit their data at Dashboard (the same as for CustomPosts, CustomTaxonomies, etc) - very easy.
II) Add a new CustomField "MetaBox/CustomModel" with possibility to choose any other "MetaBox/CustomModel" as linked sub-level data with its own already existed CustomFields and storing at its CustomTable.
III) Add functionality to repeat sub-MetaBoxes/CustomModels from (II) on data adding/editing.
Very easy, very very powerful!!! 😉