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!

Setting a buttons .value property(the text displayed on the button)

Gib2008Feb 7 2008 — edited Feb 7 2008
I need a button's display to change based on a condition. I have this javascript code in my page html header:

<script type="text/javascript">
function test()
{
document.getElementById("CREATE").value="COPY";
}
</script>

In my page html body attribute I call it:
onload="test()";

Why doesn't this work in APEX? It works just fine when I opened notepad and created a quick html page.

Since my button(named CREATE) is a region button(and tied to auto dml process item) does it not have an object id like the ones you can create in the items section? IE: If I create a button called P1_MYBUTTON then the javascript works since P1_MYBUTTON is the id. I thought since the region button is called CREATE that it was some anomoly on the part of oracle design of apex not to have it's name be P1_CREATE.

Are we not allowed to access buttons that are region buttons?

Thanks in advance for your help.
Gib
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2008
Added on Feb 7 2008
5 comments
627 views