Power Fx function
SubmitForm — Power Fx function reference
Save the form to its source.
Syntax
powerfx
SubmitForm( Form )
Examples
powerfx
SubmitForm(frmEdit)
→ Record saved
powerfx
SubmitForm(frmTask)
powerfx
If(frmTask.Valid, SubmitForm(frmTask), Notify("Fix the highlighted fields", NotificationType.Error))Common mistakes & gotchas
- SubmitForm is asynchronous — code written immediately after it in the same OnSelect runs before the save actually completes; do follow-up work in the form's OnSuccess instead.
- Only DataCards bound with Update/Unlock participate; a locked or read-only card is excluded from what gets written.
Related Power Fx functions
From Forms