---
title: "Discussion on \"Securely Open an APEX Modal from  JavaScript\" | Hashnode"
description: "Discussion on \"Securely Open an APEX Modal from  JavaScript\". Securely open APEX Modal Pages using JavaScript, passing parameters not yet saved in the APEX session state."
url: "https://hashnode.com/posts/securely-open-modal-using-javascript/684198026ec85f1173910cca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Securely Open an APEX Modal from JavaScript](https://blog.cloudnueva.com/securely-open-modal-using-javascript?utm_source=hashnode&utm_medium=feed)

Securely open APEX Modal Pages using JavaScript, passing parameters not yet saved in the APEX session state.

Jun 5, 2025 · 3 min read · blog.cloudnueva.com  
Read the article

-   [#orclapex](https://hashnode.com/tag/orclapex)
-   [#oracle-apex](https://hashnode.com/tag/oracle-apex)

## Written by

[Jon Dixon](https://hashnode.com/@orclapex)

@orclapex · San Diego, CA

  
[View profile](https://hashnode.com/@orclapex)

APEX, ORDS & the Oracle Database

I’m Jon Dixon, an Oracle APEX developer and consultant at Cloud Nueva. I write about APEX, ORDS, the Oracle Database, and how AI is changing the way we build software. This blog is where I share practical examples, lessons learned, and ideas from my work.

## Responses 2

Markdown supported · ⌘↵ to post

[A Freeman](https://hashnode.com/@afreeman)

[Nov 24, 2025](https://hashnode.com/posts/securely-open-modal-using-javascript/684198026ec85f1173910cca/comment/692477c4ed9f9ccc04acf9b9)

This is very helpful, thank you. Let say a duplicate is found, I would like to populate the calling form with those values? Since you cannot 'redirect' back to the calling page and Close would simply close the modal window, how would you fetch the existing fields on the underlying modal?

[Prashanth kumar](https://hashnode.com/@prashanth366)

[Jun 9, 2025](https://hashnode.com/posts/securely-open-modal-using-javascript/684198026ec85f1173910cca/comment/684654e3ac1400fba7198879)

Great post [Jon Dixon](https://hashnode.com/@orclapex). Very informative. Is it also possible to open the modal for a page in different application/workpsace?

[Jon Dixon](https://hashnode.com/@orclapex)

[Jun 9, 2025](https://hashnode.com/posts/securely-open-modal-using-javascript/684198026ec85f1173910cca/comment/684654e3ac1400fba7198879#reply-6846d0e8096d70129399c8a9)

Thank you Prashanth. I haven't tried opening it in another App, but there is no reason why it wouldn't work. The approach generates a URL just like APEX would if you were doing it declaratively.
