·
Added a discussion

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!

  • 1664
Comments
      • 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

          • 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):

            • In Studio > Forms > Search Forms > Persons Search:
              "Edit search form" only allows to change the name of the form
            • In Studio > Forms > Search Fields > Persons > Persons Search:
              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.
            • However, in Studio > Forms > Fields > Persons > Full View Person:
              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").
            • I also tried going through the Developer plug-in, which lets me add new search forms, but I can't add fields to those, either. If I create a new search form for module "Persons", it is empty with no search fields. If I click the Reset button, the "Real name" and "About me" fields appear, but from then on it's in the same state as default Persons search. I can deactivate the fields but no longer remove them, or add others. (As a sidenote, it seems to be currently impossible to delete again search forms created in Developer mode).

            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.

              • 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 

                      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.

                        • 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

                                  • 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

                                    Login or Join to comment.