How to Hide/Unhide one option in Radio button PeopleSoft
How to Hide/Unhide one option in Radio button PeopleSoft by using javascript.
For example. If you have 2 radio button on the page in Peoplesoft contain value Y and N but you want to hide a radio button has value Y.
1. Define Page Field Name of Radio Button Properties = RDO_Y
Result Page on Browser
2. Define JavaScript in HTML Area on page in application designer.
<script language=’javascript’>
document.getElementById(‘win0divRDO_Y$0′).style.display=’none’;
</script>
Result page in the browser after using javascript to hide a radio button when value Y is checked
You can find ID: win0divRDO_Y$0 by using right-click and inspect the radio button after the PeopleCode runs.
Another way: you can use a group box of each field radio button and using PeopleCode for hide or unhide radio button for your requirement.