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!

How to disable fields on Apex using javascript

Mikel KOLICIJun 28 2021

Hi,
I want to disable fields based on their name (I have a logic for it).
For this I have created a javascript function which will execute on page load, simmilar to:

function disable_fields() {
$(".clsTest").each(function(){
$(this).setEnabled(false);
});
};
Please help me with two functions:

How to get a field name ($(this)...)?
Which is the function used for enabling/disabling the fields? Using .setEnabled throws this error: Uncaught TypeError: $(...).setEnabled is not a function
Thank you

Comments
Post Details
Added on Jun 28 2021
8 comments
6,906 views