Hello All,In this Oracle APEX Tutorial, we are seeing how to unchecked checkbox when another is checked in Oracle APEX using javaScript.
Let's try the following steps to understand.
Step 1:- Create a checkbox group page item with any display values. Here i am display three checkboxes checkbox1, checkbox2 and checkbox3 and my return values is 1,2,3 respectively.You can see the below screenshot for the better understanding.
function checkboxchecked(el)
{
var a = document.getElementsByName("P2_CHECK");
a.forEach(function(item){
if(item!=el)
item.checked = false;
});
}
Step 3:- Now call the function to item custom attributes section.
onclick="checkboxchecked(this)"
That's all for today, I think this unchecked checkbox when another Is checked in Oracle APEX post will helpful for you. If you like this post then share your valuable comment.
3 Comments
I want know how to simulate the when-checkeboxed-checkd trigger in oracle forms in oracle apex 21
ReplyDeleteAdd click dynamic action on checkbox item
DeleteI want know how to simulate the when-checkeboxed-checkd trigger in oracle forms in oracle apex 21
ReplyDeleteIf you have any doubts, Please let me know