Hi,

i am facing an issue with the popup in web app. I have followed the steps in this documentation (https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Inputs/Create_and_Use_a_Popup). But the destination action in popup widget is not running. There is an api in my server action. There are no issues with that. I am getting the popup page i have created but my api is not running.

i want to run my server action(api) and popup both when i click the button.

Hi Avneet,

The destination action runs when you close the popup. Not when you click.
If I understand correctly, you'd like to open popup also run an action. You can call your action in the preparation of your popup screen.

If it's not your goal, could you provide more details, screenshot or your oml?

with best regards,
F.Karatay

Hi Ferhat Karatay,

I want to run my action first when i press the button and if the conditions applied on that action are true then popup should apper. otherwise not.

Solution

Hi Avneet,

I'm sending an example oml file.
Here is the link; https://we.tl/t-cxwIcPz2nu

The idea is the first button for your action second for the popup. (Second button is hidden)
When your condition is true, then you can trigger the second button to open popup.


With best regards,
F.Karatay

Solution

Hi Ferhat,

Thanks a lot for your help. Can you please help me with dealing with the background when popup appears. Like i want to blur my screen when popup appears.

Hi Avneet,

You can do it with CSS basically.

When you trigger the popup, you can change the CSS style of a div dynamically. After you click popup close button you should notify the parent page for cleaning the CSS.

Here is a new file for example; https://we.tl/t-rx2RCEhgBy

Before click

After click background is blur / black


Please keep in your mind I'm not good at the front end side. You need to update the CSS code. However, this is my approach.

With best regards,
F.Karatay