Cloning Groups of Fields on Backend (WP Admin Dashboard)
- This topic has 4 replies, 2 voices, and was last updated 6 years, 11 months ago by
@mindspark.
-
AuthorPosts
-
November 30, 2018 at 2:10 AM #12372
@mindspark
ParticipantHi Anh -
Seems like I'm asking a bunch of questions lately - so sorry. Just getting more comfortable with MB so I'm using it more! 🙂
QUESTION - Is there a way to clone Groups and all assigned sub-fields to that group can be duplicated on the back-end?
I have a group of fields for restaurant financial data - 10 fields. I now have to repeat this grouping up to 30 times - elsewhere in the form user indicates the 'Number of Units' involved in a sale. If they pick 1 then no problem, but it they pick 25, then I need to have 25 instances of the group (with all 10 fields). I plan on linking the groups to the number of units and use conditional logic to display.
But I really don't want to manually duplicate the group and then the 10 fields, then the field settings and placeholders - all manually.
The Clone option works on the FRONT-END, but what about in the form builder?
Help 🙂
this is what I have to duplicate 29 times - https://siteview.app/projects/restcaps/test/
click on the OPERATIONS tab.
November 30, 2018 at 4:41 PM #12390Anh Tran
KeymasterWell, the back end is more supported than the front end 🙂 So, all you need to do is tick this checkbox for group in the Builder:
November 30, 2018 at 7:07 PM #12401@mindspark
ParticipantLet me clarify -
Cloning allows a user to click a button as needed to duplicate something.
What I'm referring to is DUPLICATING fields in the builder. Sorry for the confusion.
I want to take a group and all 10 sub-fields and hopefully duplicate the group in the form so that I have 30 instances of the same group.
Then conditionally show the correct number of these duplicated groups based on how many units are enetered in another field.
If I choose 2 units, then show 2 of these form groups. If I choose 12 units, then display 12 of the designated form groups.
so in building the form, all 30 groups are there, but when creating a new Package, I only want to display the number of groups based on how many units are indicated in the drop down field (options range from 1 to 30).
Not cloning the group manually.
Make sense?
December 2, 2018 at 11:51 AM #12433Anh Tran
KeymasterAh, I got it. I think what you need is duplicate a whole group, including its sub-fields, don't you? If so, it's not supported yet. The duplicate feature is working on single-field basis.
December 3, 2018 at 7:19 PM #12453@mindspark
ParticipantUghh!
OK - I'll have to figure a different way to handle this issue.
thx
-
AuthorPosts
- You must be logged in to reply to this topic.