Custom script to override role permission

Dear Community,

I have an Allow On Submit field.

After submission I would like to edit this field and Update the document.

However, the Role permission for the document of current does not have Submit.

Will this be possible to override this with custom scripting? I have tried using ignore_permissions, it does not work.


Any Help?