Is there a snippet to open POP - UP action using JAVASCRIPT. I need to add a condition before the POP UP comes up

  • 1
  • Question
  • Updated 2 years ago
  • Answered
Is there a snippet to open POP - UP action using JAVASCRIPT. I need  to add a condition before the POP UP comes up. If a= 1 then show popup else do not open the pop up box on a button click.
Photo of Vaibhav

Vaibhav

  • 308 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Photo of Vaibhav

Vaibhav

  • 308 Points 250 badge 2x thumb
Thanks Raymond, It did work perfectly.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
You may consider using this instead as the popup can be managed normally vs creating it in XML.
https://community.skuid.com/skuid/topics/template-component-with-action-framework

You can skuid.events.publish(youreventnamehere) in your javascript to call the popup.