Dear all,
I have a modal on page 4 with item (P4_Original_order_no) and I have a page in my application (page 1) with item (Original_order_no) and a button (Create record).
The item (original_order_no) in page 1 will always be dynamically updated from a java script code. I am following this tutorial :
(@"Bas de Klerk")
to pass the value into the modal.
I created a hidden item (P1_MODAL_2) on page 1 and I set a dynamic action on page 1 on item (Orignal_order_no) with PL SQL query: apex_util.prepare_url('f?p='||:APP_ID||':4:'||:APP_SESSION||'::NO::P4_ORIGINAL_ORDER_NO:'|| :ORIGINAL_ORDER_NO )

On my button in page 1 (create records), I redirected to page in application (page 4 and set the P2_Original_order_no to Original_order_no). I also placed a JS code where I did : window.location = $("#P1_MODAL_2").val();

My modal 2 on page 2 is changing URL:

However, it the value is not being passed to my modal. Im not sure what I am doing wrong and would appreciate any assistance if possible.