This content has been marked as final. Show 3 replies
Forms can not hide the current item that has input focus. Try move the cursor to another item before you hide the required item.
Thank you for your reply.
Unfortunately, I haven't managed to do this programmaticaly. Any help will be appreciated.
PS: The "IF STATEMENT" is written in the trigger "when_new_record_instance" at the form level.
You're going to need to set the first item navigated to in the block to one where you don't need to change the attributes. But even then, if user clicks on one of the fields as the first item, your code will fail. Maybe you should set them to not displayed and disabled by default first, and then only display and enable them in the when-new-record-instance trigger.