Add / Edit popup

I have add and edit button can show same popup.
I should make sure that when I open the popup to add a record the fields are empty.
At the moment I have inserted an event at the closing of the popu to delete the input data but it does not work.
How can I understand if I am passing the data to the popup or not?

What workflow action are you using? And when are you using it?

How can I understand if I am passing the data to the popup or not?

The debugger will tell you that…

This is a worflow for add button (Show popup without display data)

This is a workflow for edit button (Display data Companies and show popup)

Type of content in the popup is Companies

Maybe I need to create a condition that checks if I have passed data to the popup, if it is negative I do not put default values ​​in the fields but not how to do it and if it is the right method

What action are you using when the popup is closed?

This action for save button


Thi s action for update button

This action for close popup button

The first time I click on add the fields are empty, if I change a record then I go back to add it keeps the previous data in my memory

You need to add a ‘reset data’ action…

In which workflow should I enter it?
How do I know if the popup has received workflow data to enable or disable the save and update buttons?

Any time the popup is closed (or opened)…

How do I know if the popup has received workflow data to enable or disable the save and update buttons?

As I said previously, you can use the debugger to check that.