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!

Make text fields read-only/editable via dynamic action on button click

Phil7GMay 31 2022

I've got some empty text fields that are read only "always". Whenever the user chooses an entry in a select list (e-mail), the text fields get filled with data from the respcective database row (first name, family name etc. where email = email from select list).

Now I want to allow the user to edit the text fields and save the edits. I guess this should by possible by creating new buttons and dynamics actions:
edit - button: Make text fields editable
save - button: Update database fields in respective row via pl/sql & make text fields read only again

How do I switch the text fields from read only to editable and back? They're just standard apex items "Text Field" and have Read Only Type "Always". I didn't manage to do this via javascript, which should be the way to go I guess...

Comments
Post Details
Added on May 31 2022
1 comment
18,366 views