Submit Action items in the Sitecore tree are named automatically, if there is more than one of the same type per submit button then a name clash may occur. In most versions of Sitecore Chaining multiple S4D Submit Actions is a flexible way of creating multiple related entities with a single form submission. However you may encounter this error when you attempt to save the form:
...
The error message (Unable to save the form because it contains multiple fields with the name "SubmitButton". The form was not saved.) is a little misleading as it’s actually referring to having more than one Submit Action instance with the same name.
In recent versions of Sitecore, the AllowDuplicateItemNamesOnSameLevel configuration option can be set to allow thissimply allow duplicate names under the same node in the tree site-wide. However this does not work in Sitecore 9.3, or you may not wish to keep this option disabled and still have multiple Submit Actionsallow duplicates site-wide.
Info |
---|
Sitecore 10.2 automatically renames items with numeric suffixes to resolve this issue. |
This issue will result in a message like this when you attempt to save a form with multiple Submit Actions of the same type:
...
S4D offers a workaround that will resolve this issue for S4D-specific Submit Actions only. In the S4D.config file, set the FuseIT.S4D.EnableSubmitActionDuplicateHandler value to true.
...