Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9176173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:02:54+00:00 2026-06-17T17:02:54+00:00

I am trying to implement JavaScript in header of page of Oracle APEX application.

  • 0

I am trying to implement JavaScript in header of page of Oracle APEX application.
Fields in the form by default are going to be disabled if customer data exists but it can be trigger to edit mode by clicking on button ‘Unlock’. By clicking button EnableItems() is run, but form is not resubmitted it is just js function that run.

function DisableItems()
{
$x_disableItem('P31_TITLE',true);
}
function EnableItems()
{
$x_disableItem('P31_TITLE',false);
}

If form is empty then all fields should be available to edit.

In Javascript >> Execute when Page Loads
I have

PageStart();

Now I need third piece of code so page would know if I want to load Enable or Disable mode. To do that I have

 function PageStart(){
 if ($x('P31_TEST2').value == "") {
 EnableItems();
 }
 else {
 DisableItems();
  }
 }

The difficulty is in second line of this code where I need to put some flag to assign value to a field or gather value from Apex field which would trigger either first or second function however I am not quite sure what would be the best practice to go around it. Any thoughts highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:02:55+00:00Added an answer on June 17, 2026 at 5:02 pm

    P31_START_ENABLED: hidden item, value protected = No. Provide the starting value.
    For example, here the value is either ‘Y’ or ‘N’ to indicate enabled Y/N

    function PageStart(){
       if($v("P31_START_ENABLED")=='Y') {
          EnableItems();
       } else {
          DisableItems();
       };
    };
    
    function DisableItems()
    {
       $s("P31_START_ENABLED", 'N');
       $x_disableItem('P31_TITLE',true);
    };
    function EnableItems()
    {
       $s("P31_START_ENABLED", 'Y');
       $x_disableItem('P31_TITLE',false);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement comet in my application and, being inexperienced with JavaScript, I'm
Hi I am new to javascript. I am trying to implement some javascript form
I am trying to implement an error message when user has disabled javascript. I
I've been trying to implement JavaScript thats read my twitter account ant return to
I am trying to implement a javascript toggle effect for my small or mobile
I'm trying to implement XOR in javascript in the following way: // XOR validation
I'm trying implement A* Start path finding in my games(which are written with JavaScript,
I am trying to implement Repository pattern in JavaScript. I have ViewModel which i
I'm trying to implement chained filter dropdown using just javascript - jquery. The solution
I am trying to implement a lighting effect in an HTML5/JavaScript game using tile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.