Multiple Submit Actions
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 simply 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 allow duplicates site-wide.
Sitecore 10.2 automatically renames items with numeric suffixes to resolve this issue.
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.
<settings>
<setting name="FuseIT.S4D.EnableSubmitActionDuplicateHandler" value="true" />
</settings>
This will suffix the form instances of the Submit Action item name with its Id to ensure unique names.