Hi
I trust that you are well. I need some help with popup.
I just want to know how to set up a Popup if a selected choice value is chosen. When I select the I declare button the popup must only occur if a choice value chosen = "YES" other than that the Popup must not show.
I have tried the below formula but the Popup does not come up.
Can you please assist me?


Patch(
'Medical',
Defaults('Medical'),
Visitors_Form.Updates,
VistorsD_Form.Updates
);
NewForm(Visitors_Form);
NewForm(VistorsD_Form);
Notify("Thank You For Submitting The Data",NotificationType.Success);
ResetForm(Visitors_Form);
ResetForm(VistorsD_Form);
If(Radio_cough.Selected.Value ="Yes",UpdateContext({varShowPopup:true}),UpdateContext({varShowPopup:false}));
Navigate('Welcome Screen')