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!

is there a way to enable/disable a tabular form item based on the value of a second item?

KarenHJul 9 2013 — edited Jul 12 2013

Hi Everyone,

I have a tabular form based on a collection.   The column c050(maps to f30) will be either Y/N.  If it is Y, then I would like to enable column c024( maps to f24) (which happens to be a radio button based on lov).  If the value of c050 = N, then disable c024.   There are potentially many rows, and the item c024 would only be enable/disabled for the specific row.   So if row 1 has c050=Y and row 2 has C050=N then row 1 c024 is enabled, and row 2 c024 is disabled.  Hope that makes sense.

I have created a dynamic action called enable/disable HMS fields.

event=CHANGE

selection type = jquery selector

jquery selector = input[name='f30']

condition EQUAL TO

value Y

true action1 - enable, jquery selector, input[name='f24']

true action 2 - alert, You have added an HMS Species.   There may be additional data to enter.  thanks

false action1 - disable jquery selector, input[name='f24']

false action2 - alert, no hms worries.

The alerts in both cases show properly...but nothing seems to happen to f24.....what am I doing wrong?

thanks

This post has been answered by Jorge Rimblas on Jul 11 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2013
Added on Jul 9 2013
24 comments
2,698 views