Hi everybody
I work with dynamic pages and try to do this thing:
If a particular field in the collection (called: “ClientRevies”) contains some content then a strip (called: ReviewsStrip) is expand.
I am an amateur coder (all my knowledge comes from this forum) and I wrote the following code:
It is not so clear what you’re trying to do.
Are you looking for a particular entry (row)? If you are, what is the parameter you use for retrieving this item (is it by _id, but a specific filed value)? Or maybe something else?
@jonatandor35
according to what I understand, each line in the collection represents a independent dynamic page, right?
So, in some rows (I.e. pages), the cell in the “ClientReview” column is empty. In such a case, I want the “expand” operation to be performed on the “ReviewsStrip” element.
I hope I was able to clarify myself, because I have a little trouble with English…
@yairamsalem001
I don’t see a problem with your code.
Check the console for errors.
Make sure the collection has the correct read permission.
Add console.log to test the what current item you get.
Go to your collection and check what the field key you need (not the field label )
Be sure the ID of the Review strip is correctly spelled.