Possible to open a document in read-only mode with a form formula?

Is there a way to specify to open a document in read-only mode from the form formula of a view ? Like when my field Activated = false, open in read-only, else in write mode

Thanks, Frank

Subject: Possible to open a document in read-only mode with a form formula ?

do that test in the postopen event of the form itself…

@if(Activated!=“false”;@Command([EditDocument]);“”)