Getting Data from a Modal
From Controller Modals:
To emulate the dismiss event on a Modal component, you could to set the Block while displayed property to true, the children actions will only be executed when the Modal is closed:
![](../__attachments/11993089/screenshot-1.png?inst-v=1a90f070-fe26-41dc-931e-98c768b55d69)
You can use a global variable in the parent that will hold your data from the Modal page:
![](../__attachments/11993089/screenshot-2.png?inst-v=1a90f070-fe26-41dc-931e-98c768b55d69)
From Inline Modals (Recommended):
It is easier to get Data from Inline Modals as they stand in the same page.
Add Events to the Modal Event willPresent, willDismiss, didPresent, didDismiss
You can use local/global variables or directly use source picker from Form Inputs.
![](../__attachments/11993089/image-20230706-075828.png?inst-v=1a90f070-fe26-41dc-931e-98c768b55d69)