Power Fx function
ResetForm — Power Fx function reference
Discard unsaved changes.
Syntax
powerfx
ResetForm( Form )
Examples
powerfx
ResetForm(frmEdit)
→ Form cleared
powerfx
ResetForm(frmTask); Navigate(scrList)
Illustrative — set directly as a Cancel button OnSelect in Studio.
powerfx
Cancel.OnSelect = "ResetForm(frmTask)"
Common mistakes & gotchas
- ResetForm reloads the form's Item from the data source (or Defaults() in New mode) and discards unsaved edits — distinct from NewForm/EditForm, which change mode rather than reverting values.
- ResetForm does not change Form.Mode; a form left in Edit mode stays in Edit mode after resetting, only the field values revert.
Related Power Fx functions
From Forms