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?