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!

Dynamic action based on value of mulit-value check box

ABD - DBAFeb 26 2014 — edited Feb 27 2014

I have a check box for say Color, with the possible values of Green, Yellow, Red, Blue.

I want to create a Dynamic Action that show/hides another field if the user selects 'Red'.  Note that they could select more than one color, so I need instr functionality.  The condition select of a DA doesn't allow PL/SQL expressions, but does allow a Javascript Expression.

Anyone have thoughts on how this would work?  The only examples I see for Javascript are comparing values v$('P1_COLOR') == 'Red' but I need to see if P1_COLOR contains 'Red', where I need to search for a value. I know there is a search capability, but the examples I see have you set variables first, and search, like instr returns a positive number if the string is found.

Any ideas?  Should I create some code and put in header?

Would this work?

$v('P1_COLOR').search('Red)' >0

thanks,

Drew

Application Express 4.2.3.00.08

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2014
Added on Feb 26 2014
3 comments
610 views