How could I set all fields readonly in OnLoad Event?

For some reason, I want to “lock” all fields on a form, which is, I will use sc_field_readonly for many times(not the sc_field_disabled). Is there a method like sc_field_readonly_all just for me to set all fields readonly?

Don’t tell me to write a php method and put all sc_field_readonly in that method, it’s not concise.

Or is there a method like
foreach (fields as field)
sc_field_readonly({field})

Or is there a method like
sc_block_readonly({blockname})

Or is there a method like
sc_page_readonly({pagename})

Hope there’s a solution.

Hi scriptcasechina,

                 No other way in scriptcase

There should be a way for that, you know there’re almost 100+ fields on a page sometimes, there should be a easy way for that.