Forum Academy Marketplace Showcase Pricing Features

How to reset elements when closing a popup?

I have a popup that displays takes it data from a datatype called “resource”

When a user clicks on the button “mark done” the workflow hides the button and show another button called “mark undone”

The problem comes when I click on a different resource and the button “mark undone” is still visible instead of “mark done”

What is the problem? Is there a way to reset specific elements when after closing a popup or something like that?

You’ll need to store the ‘Done’ or ‘Undone’ value somewhere (presumably in the database).

The data base is too complicated for that to work, but I solved by reseting the data of the popup before I display it