Hi @prathyoo,
I think the best solution is what @saudali_25 mentioned. Use the local storage.
Liquid would not be a good option here.
The exact process should be something like that:
- When accessing that page, clear the local storage or that specific item
- On Button click set local storage.
- On next page getItem of local storage
- Clear local storage or clear that specific item.
Depending on what you need on the second page you can set and get multiple items. Just make sure to delete the items as you don't want all other pages to get those info.
Another solution but a bit of an overkill for your problem is to use dataverse and the CRUD Api.
But the necessary steps to implement it are not given in your usecase.
--------------------------------------------------------------------------------------
Hope that helps.
If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.