Skip to content
Module allowing to insert custom javascript to Sitecore Forms submit
C# HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
documentation
src/Foundation
.gitattributes
.gitignore
LICENSE
README.md
Sc.FormsCustomScripts.sln
nuget.config
publishsettings.targets

README.md

Sc.FormsCustomScripts

Define custom javascript code which is executed on Sitecore Forms submit. Details: https://smartsitecore.com/en/call-custom-javascript-on-sitecore-forms-submit/

Forms Custom Scripts

Manual Installation/Install from Source

  • Clone repository
  • If needed update nuget packages used in Sc.FormsCustomSCripts project to match your Sitecore 9 version
  • Update publishUrl to your Sitecore instance URL in publishsettings.targets file
  • Update path in SourceFolderScUpdateContact variable to your local repository folder in Sc.FormsCustomSCripts.DevSettings.config file
  • (Optionally) publish Serialization project from Visual Studio. This project contains Unicorn assemblies and configuration. If you already have Unicorn in your solution you can skip this step.
  • Publish Sc.FormsCustomSCripts project.
  • Go to {your-sitecore-instance}/unicorn.aspx and sync Foundation.Sc.FormsCustomScripts project.

Warning: installation overwrites Sitecore platform items:
/sitecore/templates/System/Forms/Fields/Button
/sitecore/system/Settings/Forms/Field Types/Structure/Submit Button
and Sitecore platform file:
\Views\FormBuilder\FieldTemplates\Button.cshtml

You can’t perform that action at this time.