Oracle Application Express 5: Developing Web Applications — Question 29
Kim has defined a validation of "Item is NOT zero" on P5_SAL. When she runs the page, the error is displayed in the notification, but does not highlight the item or display the error below the item. Kim changes Display Location to "Inline with Field and Notification". However, the validation error still does not display under the item.
What must Kim do to ensure that the validation error appears correctly under the item and also in the notification?
Answer options
- A. Add JavaScript to the item to display on error
- B. Set Display Location to "Inline with Field"
- C. Set Value Required to Yes on P5_SAL
- D. Set Validation Associated Item to P5_SAL
Correct answer: B
Explanation
The correct answer is B because setting the Display Location to 'Inline with Field' allows the error message to be shown directly beneath the field, ensuring better visibility. Option A is incorrect as adding JavaScript is unnecessary for displaying validation errors. Option C is not relevant since the validation is already checking for a non-zero value. Option D does not address the issue of displaying the error message inline with the field.