Ticker

6/recent/ticker-posts

Unchecked Checkbox When Another Is Checked in Oracle APEX - Javainhand Tutorial

Hello All,In this Oracle APEX Tutorial, we are seeing how to unchecked checkbox when another is checked in Oracle APEX using javaScript.

Unchecked Checkbox When Another Is Checked in Oracle APEXLet'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.


Step 2:- Copy below javaScript function and Paste it to the page function and global variable declaration.



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.

Demo URL

Post a Comment

3 Comments

  1. I want know how to simulate the when-checkeboxed-checkd trigger in oracle forms in oracle apex 21

    ReplyDelete
  2. I want know how to simulate the when-checkeboxed-checkd trigger in oracle forms in oracle apex 21

    ReplyDelete

If you have any doubts, Please let me know