Press "Enter" to skip to content

Oracle Apex: Check if Item Value Changed

In Oracle Apex, you can check if an item value changed using the JavaScript API method isChanged(). The following is an example of it.

Check/Determine if an Item Value Changed in Oracle Apex

JavaScript method isChanged(), compares the current value with the value at the time on page load, and if it finds a difference, then returns True else False.

In the following example, it will check for the field salary (P3_SALARY) using the apex.item namespace, if the value changed, then it will give the alert message to verify again.

if (apex.item("P3_SALARY").isChanged()) {
apex.message.alert('You modified the salary, please verify again!');
}

Output

Determining if item value changed in Oracle Apex.

Related tutorials:

Have you found the answer to your question? If not, you can discuss it with me in the comments section below or join my Q&A community OrclQA.com for developers and ask your question. It is FREE.

Vinish Kapoor

Follow

Hi, I am a full stack developer and writing about development. I document everything I learn and help thousands of people. foxinfotech.in is created, written, and maintained by me; it is built on WordPress, and hosted by Bluehost. Connect with me on Facebook, Twitter, GitHub, and get notifications for new posts.

guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments