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!

Force Text Page Item to Uppercase

CometJul 2 2021 — edited Jul 2 2021

I am developing an application in APEX 5.1. I created a page with several page items with the property type Text field. I need to force the data in the page item P4_EVENT_NAME to upper case. I found something on the web that said I should set the Advanced/Custom attributes property of P4_EVENT_NAME to:
style="text-transform:uppercase".
This displays the data as uppercase but it saved it as the case entered in. I found another web resource that said to place the flowing JavaScript in the Javascript/Execute when page load loads property:
$(document).on('change', '.uppercase', function() {
var i = "#" + $(this).attr("id");
$(i).val( $(i).val().toUpperCase() );
});
The data is still saved as entered even though it is displayed as uppercase. Do I have to modify the JavaScript above to include the page Item name, if so where? Is there another way to force a text field to uppercase and save the converted data?

This post has been answered by fac586 on Jul 2 2021
Jump to Answer
Comments
Post Details
Added on Jul 2 2021
2 comments
2,049 views