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!

Oracle Apex textarea value jQuery

User_L0W8SApr 8 2022 — edited Apr 8 2022

Hello!
I'm having an issue with a DA I created for copying comment value from first textarea item to the following fields in the same report. The textarea field is created within a report region SQL query APEX_ITEM.TEXTAREA(1, ..., ..., ...).
I created a button which runs a JavaScript expression with the following code:
if ($('input[name=f01]').val() == undefined) {
apex.message.clearErrors();
apex.message.showErrors([{type:'error',location:'page',message:'No comments inserted',unsafe: false}]);
} else {
$('input[name=f01]').val($('input[name=f01]').val());
}
Whatever is inserted into the textarea the code still returns an error saying 'No comments inserted', which means it's not receiving any data from the textarea item. Why is that? How to get around that issue? I have used the same method on other items and it's working as needed.

This post has been answered by jariola on Apr 8 2022
Jump to Answer
Comments
Post Details
Added on Apr 8 2022
2 comments
429 views