In Persons settings, there is a category "Searchable fields for keyword search" containing the two fields "Real name" and "About me", which then also show up in the Person Search box. These seem to come from the Persons set in the Search Fields configuration in Forms.
I have added several additional, custom fields for users to fill out in their profiles, and would like to make those searchable, too. However, I couldn't figure out if or how it is possible to get those fields to show up in the "Search Fields" configuration so I could add them to the person search form. Is there a way to do this (yet)?
Thanks!
Comments
https://una.io/cmts.php?sys=bx_forum&id=289&cmt_id=642
D
Hi Alex, thanks for the reply. I saw that post, and it suggests that what I want to do is possible, but I can't figure out how. Most of my custom fields are of type `text` or `checkbox_set`, but I still couldn't find out where I can add them to the search forms.
Please refer to this post, I hope it will be clear for you:
https://una.io/cmts.php?sys=bx_forum&id=289&cmt_id=658
D
That post helped me figure out the difference between custom search forms and the keyword search setting, thank you!
However I still don't manage to set up custom fields for search. Here is the exact places I've tried (I'm on v9.0.0-RC with all official plugins updated):
"Edit search form" only allows to change the name of the form
There is a fixed list of the two fields "Real name" (of type `text`) and "About me" (of type `textarea`). The two items can be (de-)activated, and rearranged, but I can't find how to add new ones.
I have set up many more fields of type `text` and `textarea` with no visible configuration difference from "Real name" or "About me". The are active, visible to "Anyone", and assigned to module "Persons" (although I also tried assigning some to module "Custom").
Sorry if I'm missing something obvious, I appreciate your efforts to help!
Fields to search form are added automatically when you add then to the regular forms, please try to make sure that new fields are activated in "Add Person" form display.
D
That was it, it worked now! I tried adding the fields I wanted to make searchable to other Persons forms, and didn't know that the "Add Person" had a special status that decides which fields become searchable :)
Thank you for your help!
I did not succeed with this.
I need to create a new search form or change the person search form. I have added a switcher in "add person" and "edit person" (the same one), now i want to search persons who checked this switcher (i addition to the default filters).
I did as the following:
1) Created new search (file 1)
2) Reset (file 2)
a video will be great
Hello Hodor!
Let's review actions to add new field to the search area for persons. So if you already added it to "Add" and "Edit" forms and enabled there then need to visit "Search forms" area, find there "Persons Search" item, then click by link "5 fields" (number may be different). In this area new field should appear automatically, but if still not you may press button "Reset" in the top-right corner. According your task (add switcher with possibility to search by its variants) i may suggest to use "radio set". But firstly need to create new data list for this field with variants. Then during creation new field choose for "Values" field the new data list. In this case search process will affect data from this field.
With the best regards, Leonid
Please elaborate this
here
Please respond in discussion id=746
Hello Hodor!
Ok, will continue discussion there.
With the best regards, Leonid
I think the search ignoring my configuration, i set for 3 profile allow-dating true and 3 other allow-dating false
when i search (i form) i set the switcher true to give 3 who are allow-dating true and give me different result.
Can you see please what i did wrong?
Hello Hodor!
Please provide me operator access and URL of your UNA via messenger.
With the best regards, Leonid
OK
Hello Hodor!
According our check we found that better to user fields as "radio set" like in my post here from 4th of February. Switcher type has troubles now, added to tickets https://github.com/unaio/una/issues/1129. Thank you for your efforts!
With the best regards, Leonid