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