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!

Checking if a checkbox is checked

xarg-XrcMar 4 2013 — edited Mar 8 2013
Hi All,

I have a tabular form created manually where I use apex_item.checkbox2() function to create a checkbox.

In my page process how can I work out if this item is checked or not? For example, my checkbox corresponds to f03 (#3 from left, after a textfield and a date picker which corresponds to f01 & f02 respectively), and I have seen some people use this way (not sure what they are doing):
for i in 1..apex_application.g_f01.count loop
	if apex_application.g_f03( apex_application.g_f01(i) ) == 'Y' then 
		-- do something
	end if;
end loop;
I look in the page source in firebug and see there is a checkbox with name="f01" with the value I set in the param of apex_item.checkbox2(1,l.line_no) but there is also a f01 in the same < td > tag like this:
<input name="fo1" type="checkbox" UNCHECKED="" VALUE="2" />
<input name="f03" id="f03_002" type="hidden" value="124482038" />
My Apex version is 4.1.1 (cloudy theme) on IE7.
This post has been answered by Joel_C on Mar 7 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 5 2013
Added on Mar 4 2013
10 comments
3,625 views