Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Potential bug in Modal Pages $v, apex.item and document.getElementById not working

User_GJ6RUFeb 26 2023

Hi,

I was facing some issues with DA and when I tested the javascript directly in console I could not get a value from input field, no matter if using $v, apex.item or document.getElementById.

$v and apex.item would return empty and document.getElementById would return:
Uncaught TypeError: Cannot read properties of null

Which was odd, as the input exist on the screen and can be entered.

This was the case until I do “inspect” and drill down through the html to the input.

After that repeating $v or document.getElementByID or apex.item would return the value.

And I spotted this is happening only on modal pages.
Could this be caused bcs the modal page is within an iframe or am I missing something ?

Please advise.

This post has been answered by fac586 on Feb 26 2023
Jump to Answer
Comments
Post Details
Added on Feb 26 2023
5 comments
399 views