Power Fx function
NewForm — Power Fx function reference
Put a form into new-record mode.
Syntax
powerfx
NewForm( Form )
Examples
powerfx
NewForm(frmEdit)
→ Blank form
powerfx
NewForm(frmTask); Navigate(scrTaskEdit)
Illustrative — OnSelect is normally set directly on the button in Studio, e.g. NewForm(frmTask); Navigate(scrTaskEdit).
powerfx
Set(btnAddTask.OnSelect, "NewForm(frmTask)")
Common mistakes & gotchas
- NewForm resets to Defaults(DataSource) and sets Form.Mode to FormMode.New — any unsaved edits already in the cards are discarded without warning.
- It targets a Form control whose data source is already configured in Studio; NewForm itself takes no data-source argument.
Related Power Fx functions
From Forms