24. What are the different form modes in power apps?

In Power Apps, forms have different Form Modes that control how a form behaves β€” whether users are creating, editing, or simply viewing data.

There are three main form modes:

1. FormMode.View

  • The form is populated with an existing record.
  • User cannot modify any fields (read‑only).

How to switch to View Mode

ViewForm(Form1);

2. FormMode.Edit

  • Form loads an existing record.
  • User can edit fields.

How to switch to Edit Mode

EditForm(Form1);

3. FormMode.New

    • Form fields contain default values, usually blank.
    • Used to create new records.

How to switch to New Mode

NewForm(Form1);

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top