Hello,
If you wish to reorder the fields in a search form, you can do that by dragging them up or down (by the Ξ handle on the left) in the “Edit Form” page.
Oh dear…i didnt see this. Slightly embarrasing. Thankyou for replying.
Ah! no, not quite, I am concerned with the Profile Search Forms page. When adding a new Form, it seems not possible to change the order of these forms. How Would I go about ordering these forms. The “containers” of the toggles?
Thanks
Why would we need to reorder the forms? I can’t see the usefulness of that feature, could you please provide some details?
Hello.
In my case. Say I have form 1 and form 2 and form 3 and form 4 all the way to 20. Each of these forms has a set of toggles setup. They are grouped in categories. Say each category has 4 forms each. But then I need to add a 5th form to the first catagory group. Eg form 2.1 . I at the moment will need to change form 3 to 2.1 and re-do each form thereafter to keep the rest of the forms in the correct order.
https://www.pobpob.com/members/ the left hand menu will show my consideration. I am now populating the lists…but i might need to move/add toggles to different locations.
Thanks, now I understand what you need.
How are you rendering all those forms in your sidebar? Are you using:
1. the Add to Directory option?
2. widgets?
3. shortcodes?
4. do_action (‘bps_display_form’, …)?
5. or custom code?
It’s a custom .js file been made to move them to the left hand side. Hence re-ordering in the form creation point is ideal for me. Then I can just play around as required. Thanks.
Ok, so I suppose you are using the Add to Directory option.
You can try to replace line 18 in bps-form.php:
'orderby' => 'ID',
with
'orderby' => 'title',
This way the forms will be ordered by title in your sidebar, and you’ll be able to rearrange them by changing their title.
Thanks for the info. It maybe easier if I can take the ID’s and confirm the order of the ID? Like how you might do for the order of buddypress menu tabs.
I am a bit confused by arranging by title. I dont know how this would make arranging them any easier just by changing the title.
You could title your forms like:
– Aform
– Bform
– Cform
and so on. Should you need to move Cform to the first place, you could rename it A1form, so you’ll have:
– A1form
– Aform
– Bform
And if you need to insert a new form after the second one, you can call it B1form:
– A1form
– Aform
– B1form
– Bform
I think ordering by title is convenient because you can change the form title, while you cannot change the form ID.
Hello. Yes I aggree. My concern is that this would make the labelling for the user quite weird unless I could somehow hide the first letter from the front end label.
The form titles are not shown on the front end, they are only used on the admin side, while the front end shows the configurable Form Header text.
Anyway I agree that this way of ordering the forms is more a workaround than a well designed feature π
Ah. Yes, thats right. That will work fine then. A good workaround that will suffice. How would I put this into bp-custom to avoid update changes?
That’s not possible with this plugin version, I’ll add a hook in the next version and I’ll post the code here.