Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There may be times you need to extend or change the logic of the default submit action (S4S Generic Submit Action) shipped with S4S. For example, if you have a complex custom web form that requires data from different Salesforce objects or have form validations needs beyond what Sitecore or S4S has provided. You can write your own custom submit action for Sitecore Experience Forms and use S4S to communicate with the Salesforce Org according to your complex requirements. This code sample will guide you write a simple custom submit action which communicates with Salesforce.

...

  • Create a project in Visual Studio and a new class similar to the example code (inherit from SubmitActionBase). The example project name is FuseIT.Salesforce.Demo and the class name is FuseIT.Sitecore.Demo.SubmitToSalesforceContacts. Modify the class to your needs and copy the compiled DLL to your Sitecore bin directory.

...

Child pages (Children Display)
alltrue
depth2
pageS4S Experience Forms Support (Optional)Custom Submit Action