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!

Hidden/visible text field on click

DirdOct 20 2009 — edited Oct 20 2009
Hi,

I'm creating to make a field go from hidden to visible based when a button is clicked using javascript. I've looked at this: http://htmldb.oracle.com/pls/otn/f?p=31517:129:1617669608355761
But don't understand it and can't get it to work. First I had a Hidden text field. The user clicks the "New" button which calls the myFunc() js function (without page submit). Here I tried various things based off another thread that had $x(P11_NEWFIELD).value...I tried:
$x(P11_NEWFIELD).visible ...
$x(P11_NEWFIELD).visibility...
$x(P11_NEWFIELD).hidden ...
None worked. I then tried it the other way around (making it a text field and trying to hide it...didn't work. I tried putting html_HideElement(this); in the text fields attributes to see if it did something but still visible making me unsurue what that is meant to do. Help :x

Button
URL = javascript:myFunc();

Wanting P11_NEWFIELD to go from hidden to visible text field after button pressed.

Edit: It doesn't seem to be working at all actually...I tried window.open("Hi"); in the function & it didn't appear...

Thanks for help
Mike

Edited by: Dird on Oct 20, 2009 11:24 AM
This post has been answered by jariola on Oct 20 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2009
Added on Oct 20 2009
9 comments
1,039 views