Change Field Editor Properties--Default Mode using javascript

There’s probably something in this post that will help:
https://community.skuid.com/t/edit-mode-button