I can’t configure the action button to launch the result in my repeatinggroup. Thanks!
I want to search a field (txt) in a database and display the results of another field (img). I think that my repeatinggroup and my image are well configured because when I don’t run a search, all the contents of my database are displayed. But when I launch a search by clicking on the action button, nothing appears. It must be a programming problem with my action button, but I can’t work out which. I’ve been trying for hours. Help . Eric
you can put a conditional data source on the repeating group for when the search field isn’t empty and it can take whatever text input is there and just put a filter on the data source you’re using now
a conditional. Its on the right in the element screen after appearance and layout. You can make a condition like “when search box A is not empty” and then add anything you want your repeating group to do differently when that condition is active. Such as changing the data source of the repeating group to use whatever text is in the not empty search box as a filter
Thanks for these explanations, but I still can’t figure it out. I will explain more concretely what I want with my precise data. I have a database: data types=Search. 2 field: img and txt. I want that when I write a word in the search field, if this word is in my “txt” field, my repeatinggroup displays the corresponding data from the “img” field. For example, my “txt” field is a list of animals. My “img” field is a list of links to images of animals stored on a cloud". When, for example, I write “dog” in my search field, I want all the dog images to appear in my repeatinggroup and not the images of other animals.
Many thanks for your reply. Eric
I’ll also explain how I parametized everything. On my page, I placed: 1) Place holder with the search input field… 2) A “button type” with workflow “display in repeatinggroup recherche” and element “repeatinggroup recherche”(the only possibility). 3) A repeatinggroup with type of content “recherche”. And as the data of source "search for recherche. 4) A image in the repeatinggroup with as dynamic image : current cell’s recherche’img. Then, when I launch the search page, all the images in the “img” field are displayed, but when I search for an animal and press the button, everything on the screen disappears.
On your repeating group, go to the third tab called conditionals. The first one is appearance that’s where you’ve entered the data source. Hit create a new condition and make it “when search box is not empty”
Then you open the dropdown that says “things to change when this condition is true”, copy the oringinal data source you have then add a filter, you want it filtering for a keyword and that keyword to be dynamic data showing whatever has been typed in the search box.
I’d consider adding two text fields on your data type. One a specific name for each dog for example and another for type of animal eg dog
Thanks, I think I understood the first paragraph (see attach) but then I don’t understand this: “copy the oringinal data source you have then add a filter, you want it filtering for a keyword and that keyword to be dynamic data showing whatever has been typed in the search box.”
so that dropdown you see there “select a property to change when true”? you want to select data source. That’s how we’re going to filter the repeating group to show the search results, Copy the primary data source in there then add the filter as the search box’s value. I can’t remember off hand what its called but there’s a straightforward keyword filter in there.