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!

Tabular Form Hide the poplov button

nshah1807Jun 23 2016 — edited Jun 24 2016

Hi All

I am using apex 5.0.3

Trying to disable the popup lov text field and button based on condition from other column.

Here is my code

<script language="JavaScript" type="text/javascript">

function disableItems(checkcolumn, columnvalue, disablecolumn)

{

var f1 = document.getElementsByName(checkcolumn);

var f2 = document.getElementsByName(disablecolumn);

var k;

  if (f1)

{

  for (k = 0; k < f1.length; k++)

   { 

   if (f1[k].value !== "")

    { 

    f2[k].disabled = true;

    f2[k].style.backgroundColor = 'silver';

    }

  }

}

}

function enableItems(column)

{

var x = document.getElementsByName(column);

var k;

if (x)

{

  for (k = 0; k < x.length; k++)

  {

    x[k].disabled= false;

   x[k].style.backgroundColor = 'white';

  }

}

}

</script>

<meta content="30" http-equiv="refresh">

I am using dynamic action to fire this code on page load disableItems('f12', 'Y', 'f04')

I am able to make text area disable but the lov button still show up and when user makes changes via clicking button then lov values it accept the values.

How can I disable/not show the LOV button.

Thanks in advance for your time.

This post has been answered by PMON on Jun 24 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2016
Added on Jun 23 2016
10 comments
1,925 views