Define custom javascript code which is executed on Sitecore Forms submit. Details: https://smartsitecore.com/en/call-custom-javascript-on-sitecore-forms-submit/
- Clone repository
- If needed update nuget packages used in Sc.FormsCustomSCripts project to match your Sitecore 9 version
- Update
publishUrlto your Sitecore instance URL inpublishsettings.targetsfile - Update path in
SourceFolderScUpdateContactvariable to your local repository folder inSc.FormsCustomSCripts.DevSettings.configfile - (Optionally) publish
Serializationproject 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.FormsCustomSCriptsproject. - Go to {your-sitecore-instance}/unicorn.aspx and sync
Foundation.Sc.FormsCustomScriptsproject.
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
