Skip to:
Content
Pages
Categories
Search
Top
Bottom

Repeatable Field groups required


  • sachinbalwp
    Participant

    @sachinbalwp

    Hi,

    I am developing a WP site on localhost and I am using BuddyPress for the first time. This website is a community site. I have defined a base profile field group and I have other field groups based on the profession of the members. In this I have a field group called “Business”. This field group is supposed to capture the “Business details” like “Name of the company” etc for a particular business. It is possible that a member might be a businessman and he might have multiple businesses. Hence I would like to have “Business” field group repeated, so that I can capture multiple business details of the same member. Is this possible?

    WP version: 4.7 BuddyPress version: 2.7.3

    Thanks

    Sachin

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

  • danbp
    Participant

    @danbp

    If you create a field group called Business Details, you simply add as many fields you want!
    Let’s say, you want that users can fill about 5 companies or society. In this case, you need to create a field for each input, in other words 5 fields. And if you need more details for each, you add the fields you need, one by one:

    Business 1: [___]

    Address 1: [___]

    Office 1 hours: [___]

    Business 2: [___]

    Address 2: [___]

    Office 2 hours: [___]

    Or if you use a lot of details, you group each businness separately.

    For better clarity of the default profile details output, when you have a lot of information to display, is to use this very handy plugin: buddypress-profile-tabs


    sachinbalwp
    Participant

    @sachinbalwp

    Hi,

    Thanks for the response. But, what I am looking for is a group which could be repeated n-number of times and not hard coded. I have 10 fields which I would like to capture per business, hence I feel that the above suggested option would not be practical.

    Is there any other solution which you can suggest.

    Thanks

    Sachin

    I looked into this a while ago. I don’t know if any plugins have provided it — if so, the code will be hacky — because achieving this requires changing some data storage we do in BuddyPress, which is a bit of a complicated issue to resolve well.


    sachinbalwp
    Participant

    @sachinbalwp

    OK, Thanks for the inputs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar