Hey all,
I have a repeat on my page displaying a number of records. This data comes from an external API.
I’d like to create a conditional region within the repeat record, with a button. The button click will then call the same external API and get more data for that specific record.
The API call is straight forward, I just call the SC and pass the records unique external ID via the API.
The call then returns the data in the SC. What I’m getting a little stuck on, is the correct way to only display that records newly acquired info in it’s record within the repeat, instead of that data being displayed across all repeats.
I’m assuming it’s going to need to use $index, but I haven’t solved it yet.
Would sending the external_id + the records $index number to the SC and then the condition on the record must match $index number to display the records work?
Last updated: