Is there a way to make all fields read only based on a condition?

This post might help. You could create this button, then conditionally render the button:. https://community.skuid.com/t/edit-mode-button?topic-reply-list[settings][filter_by]=all