Skip to Main Content

Java Development Tools

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!

Show/Hide form fields based on drop down selection in ADF

542381Jun 26 2007 — edited Jun 28 2007
Hi,
I am trying to have a javascript to render or not render the fields based on the drop down selection.
Here is the code that I have. It doesnot work. I am not sure how to set the 'rendered' property for a field to true or false. I am calling this on 'onchange' event of the drop down list values. Can anyone help me with this?

function formsubmit(value)
{
var render = false;
alert(value);
if(value == 0){

document.getElementById("form2:inputText20").rendered = true;
alert(document.getElementById("form2:inputText20").rendered);
return document.getElementById("form2:inputText20").rendered;
}


Thanks,
Priya
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2007
Added on Jun 26 2007
4 comments
1,073 views