Posts

Showing posts from March, 2023

How to Create Sitecore Web Form

Image
  GOAL:  To Create simple sitecore WebForms and store values in custom DB Design: Design the webform based on requirement and suitable field drag and drop. Create  Submit Button Action method  and provide Model Type Field values. Tag newly created action method to webform submit button. Implementation: Install below mentioned sitecore Nuget package related to webform. Sitecore.ExperienceForms Sitecore.ExperienceForms.Analytics Sitecore.ExperienceForms.Client Sitecore.ExperienceForms.Data.SqlServer Sitecore.ExperienceForms.Mvc Sitecore.ExperienceForms.SubmitActions Code Logic:     public class ProfileForm : SubmitActionBase < string >     {   string Name = string .Empty;         string Email = string .Empty;         string Address = string .Empty;         //submitActionData => The submit action data         public ProfileForm( ISubmitActionData submi...