Get modal parent form

Hi all, I have a form that opens a new form as modal. This second form open a third form (Also modal).
If I try "window.top.fd" or "window.parent.fd" from the third, I always get the first parent form, not the second one.
How can I access to FD object of the second form from the third?

Thanks

Hello @PedroJimenez,

You can save the values of the second dialog to local storage and then pass the value to the third dialog. Please find more information about the local storage object here.