Change the loaded object in modal

Hello All,

Let’s imagine a page where 3 or more items are listed. The end user has to review each of these items. My current approach is that clicking on one item opens a modal with its data, and validating the item close the modal and the item is updated as ‘validated’ in the page. This work fines but it would be much better that validating the item in the modal would rather load the data of the following item. I could not find any way to access the page’s data in the modal’s script.

So my question: is there a way to keep the modal open and load data of the following item ?


I would move the data out of the page and into a service provider so it can be accessed from the modal equally easily.

1 Like

That sounds good, thanks a lot for your prompt feedback! :grinning: