Power Fx function
EditForm — Power Fx function reference
Put a form into edit mode.
Syntax
powerfx
EditForm( Form )
Examples
powerfx
EditForm(frmEdit)
→ Editable form
powerfx
Set(varSelected, galTasks.Selected); EditForm(frmTask)
powerfx
If(frmTask.Mode <> FormMode.Edit, EditForm(frmTask))
Common mistakes & gotchas
- EditForm loads whatever record is currently in the Form's Item property — set Item (often to a gallery's Selected record) beforehand, since EditForm itself takes no record argument.
- Switching a form already in New mode to Edit mode discards the in-progress new record.
Related Power Fx functions
From Forms