How to get the values of a multi combo box to a next page?

Hey Guys! First of all I am sorry for my bad english.

Overview:

Intention:

  1. select for example hobby1 and hobby2 in the multi combo box
  2. press the button to open the output page
  3. show all the presents with the property hobby = hobby1 or hobby = hobby2

Maybe somebody can help me? Thank you!

Output page

Add page parameter hobbys type text.
1

Set repeat with of card to formula.
SELECT_BY_REGEX(appVars.presents, "hobbys", params.hobbys)
2

Bind card title and content to repeated item.
10

11

Combo box page

Add page variable selected (list of objects with token text property).
6

Attach Set page variable and Open page to button tap.
3

4

Set page variable selected to selected tokens of combo box.
7

Set Open page to output page, set hobbys parameter to formula.
JOIN(PLUCK(pageVars.selected, "token"), "|")
8

Set combo box list of options to formula.
GROUP(PLUCK(appVars.presents, "hobbys"),item,{token: key})
9

1 Like

Thank you, you are the best!!

Hey @dwidge I have followed your instruction and it works well.

But now there is an little new problem, because I want to get all results if there is no option selected.
At the moment I get no result if I do not select an option.

Thank you for your time!!!

Set Open page to output page, set hobbys parameter to formula.
JOIN(PLUCK(pageVars.selected, "token")||[], "|")