Clear a create form block when submitted

This commit is contained in:
Andrew Kingston 2022-11-25 13:34:25 +00:00
parent 5854b523e7
commit bab61698cb
1 changed files with 11 additions and 0 deletions

View File

@ -46,6 +46,17 @@
{
"##eventHandlerType": "Close Side Panel",
},
// Clear a create form once submitted
...(actionType !== "Create"
? []
: [
{
"##eventHandlerType": "Clear Form",
parameters: {
componentId: formId,
},
},
]),
{
"##eventHandlerType": "Navigate To",
parameters: {