how to open pop up by javascript
Hi Omar, can I ask why would you want to do that?
Please give more info regarding your use-case, as if you are using the Popup widget you have a property called showPopup, where you can bind to a boolean variable, and changing the value of your boolean local variable between True and False will make the popup appear/disappear.
So in your logic if you want to make the popup open, just pass the value of your boolean variable bound to it, to True.
But let me know your specific use-case and why you are not following the regular method so I can try and help further,
Paulo
Hi @Omar AbdElhadi,
Yes, As Paulo suggest, use the OutSystems popup widget to show and hide. It will also work on client side as JavaScript.
Please refer the link for more details
https://success.outsystems.com/documentation/11/developing_an_application/design_ui/inputs/create_and_use_a_popup
Thanks
You can look into this link:
https://www.outsystems.com/forums/discussion/26873/force-a-webpage-to-open-in-pop-up/#:~:text=The%20JavaScript%20code%20will%20%22click,of%20the%20hidden%20button%2Flink.
Hope this will helps!
Regards,
Deepika
Hello @Omar AbdElhadi
For Js based open and close option you can use this popup component that you can call from any screen action of your by just passing the identifier of the popup it has client actions available which you can call using JS $Action.YourClientActionName
I am attaching one example for you -
FORGE - https://www.outsystems.com/forge/component-overview/10870/winbox-js-modal-reactive
Sample via JS - https://personal-ejuytnht.outsystemscloud.com/MenuwithSubMenu/CustomPopUpSample?_ts=638291900942294235
Reference Oml is attached
ThanksTousif Khan