I am building a list form in SharePoint online, using InfoPath. The list is a "knowledge base" with questions, answers, and a category field. I am trying to build in a function in the InfoPath form so that when a user selects a category from the drop-down list, that triggers a display of related Q and A on the form (with the idea that the user may see their question is already in the database and not submit a new one - sort of like the Related tab in this forum).
Here's what I've done without success, please tell me what I'm doing wrong...
1) Created a secondary data connection to the list, pulling the Q, A, and Category fields.
2) Added field form boxes for Question and Category (choice dropdown)
3) Added a text box (called Related)
4) Added a rule to the Category field (Add Rule -> When this field changes) for Action->Set a Field's Value.
5) In the Action: Set a Field's Value dialog box, set Field to Main:Related (the text box); set Value to Insert Formula->Insert Field or Group-> MyFields:DataFields:Question (under Knowledge Base (Secondary) as source of fields)
6) In this selected field (MyFields:DataFields:Question (under Knowledge Base (Secondary) as source of fields)), select Filter Data. Pick Add. Under Display data that meets the following criteria, pick: Select Field or Group: Knowledge Base (Secondary): Data Fields:Category EQUALS Select Field or Group:Main:Query Fields:Category
7) Publish form.
When I go to the published form in the browser (in SharePoint) and select an item from the Category dropdown, nothing happens in my text field.
I'm honestly not sure if I need to correct a minor error or if my whole approach is misguided. Please help a newbie out!