Cheat Sheets/Power Apps/ViewForm
Power Fx function

ViewFormPower Fx function reference

Put a form into read-only mode.

Syntax

powerfx
ViewForm( Form )

Examples

powerfx
ViewForm(frmEdit)
Read-only
powerfx
ViewForm(frmTask)
powerfx
If(!frmTask.CanEdit, ViewForm(frmTask), EditForm(frmTask))

Common mistakes & gotchas

Related Power Fx functions

From Forms

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet