Posts

Showing posts with the label Sitecore Forms

Sitecore Embeddable Forms Framework(EFF) and GraphQL API to create items in Sitecore XMCloud

Image
Sitecore 10.3 introduces Embeddable Forms Framework, which helps developers/marketers to design forms and inject them into the non-Sitecore application, this feature is slightly similar to Federated Experience Manager of showing Sitecore content in the non-Sitecore application. We can still use the custom submit action on the forms to trigger any kind of data integration to third-party systems. All validation, CSS, will be applicable and will not override the web application. Developers can also create custom form elements like Text fields, dropdowns, etc and which will be used to design the form like other fields. Custom form creation In this example, we will create items in Sitecore from the non-Sitecore applications using Forms and GraphQL Install Sitecore headless services 21.0.0   in Sitecore 10.3 which is necessary to pass the form details in the layout service, which will be automatically consumed by the third-party application by injecting EFF script snippet in the HTML. Do...

Sitecore Forms with Mailchimp integration

Image
Our marketer interested to create a subscribe form and the information provided by contact should be stored to the subscription list, As the client wants to use 3rd party Mailchimp application to store the subscriber details, so in order to achieve this in Sitecore Forms out of the box there is no Submit Action available to add the contact to MailChimp, So I decided to go with custom Submit Action to implement the required functionality. Steps to achieve : Create the required form in with Sitecore Forms  Create custom Submit Action for adding a contact to the Mailchimp Subscriber list. using  System.Linq; using  System.Net; using  Newtonsoft.Json; using  Sitecore.Diagnostics; using  Sitecore.ExperienceForms.Models; using  Sitecore.ExperienceForms.Mvc.Models.Fields; using  Sitecore.ExperienceForms.Processing; using  Sitecore.ExperienceForms.Processing.Actions;        ...

Sitecore custom Contact Facet with WFFM

Image
In Sitecore by Out of box, we have predefined Facets but most of them are useful for us, but still, due to some client requirement we may need to store different details about the customer to Mongo DB and will be aggregated to Reporting DB. Facets have these following. v   Attributes – attributes are an element's subitems. For example, the Address element could contain attributes such as country, state, town or email address. Attributes can be strings, GUIDs, integers, or floating point numbers. v   Elements – an element is a data structure that contains one or more members or attributes, such as a facet. v   Dictionaries – A dictionary contains named elements. Each element in a dictionary is identified by a unique key Let us start creating Custom Facet for the storing customer’s Email, Age, Designation, and Company but the rest like FirstName into the out of Sitecore Facet. v   In order to create a Facet, we need to...