Skip to main content

Posts

Showing posts from November, 2021

Sitecore 9 Forms :  Alphanumeric Captcha

Sitecore 9 Forms :  Alphanumeric Captcha As you know Recaptcha is not available on Sitecore 9.0.1 and Sitecore 9.0.2 forms, so I thought to create custom Google Recaptcha but my issue was Google Recaptcha was not working properly on Internet Explorer as it was asking 10 to 15 times to verify which is very frustrating, at the same time it was working for another browser so I thought to create custom Alphanumeric captcha as per client requirement. In previous blog, we have checked how to create Google reCaptcha field. Now we are going to create Alphanumeric Captcha using below steps: Create new viewmodel class AlphaNumericViewModel.cs [Serializable()]     public class AlphaNumericViewModel : StringInputViewModel     {         protected override void InitItemProperties(Item item)         {             base .InitItemProperties(item);         }     }   Create Controller AlphanumericCaptchaController.cs public class AlphanumericCaptchaController

Sitecore custom field type to convert address to Latitude and Longitude using Google map API

Sitecore custom field type to convert address to Latitude and Longitude using Google map API Sitecore allows the user to create a custom field type as per requirement. This blog post will explain to you how to create custom field type to convert address to Latitude and Longitude, this is a super easy way to get Latitude and Longitude for Content Editor. Create new field Switch to Core Database and Navigate to this location “/sitecore/system/Field types” Create new folder “User Defined” using  this “/sitecore/templates/Common/Folder“ template Create new item “LatLong” using this template“/sitecore/templates/System/Templates/Template field type” Inside “LatLong” item add control name “customfields:LatLongField” Create new folder “Menu “ using  this “/sitecore/templates/Common/Folder“ template Inside “Set LatLLong”, set below values: Display name: Set Latitude Longitude Message: LatLongField:Set Inside “Menu” folder create

Sitecore Analytics Database Manager (ADM) Module Customization

Sitecore Analytics Database Manager (ADM) Module Customization Recently I got the situation where I want to remove multiple contacts from xDB. I do not want to write my custom code. Then I found Analytics Database Manager  ( ADM) 4.0.1 module in Marketplace, but it was not fulfilling my requirement because this module has only below options: Remove Historical Data :  Removing all contacts and all related data without interactions after the specific date Rebuild Calculated Facet : Historcial rebuild of calculated facets Remove Single Contact Data : Removing single contact by ID or identifier To fulfill my requirement, instead of creating a new tab for multiple contact removal, I did some minor change in Remove Single Contact Data.  Open “AdmTaskPage.js” from this location “sitecore\shell\client\Your Apps\ADM\AdmTaskPage“ Replace “removeContact” function from below code, to remove multiple contacts from xDB removeContactByID: function (id) {

Save contacts into List using Marketing automation and Forms

Save contacts into List using Marketing automation and Forms   Marketing automation is a very powerful tool of Sitecore, it provides a facility to create an automated online campaign with a user-friendly drag and drop interface. You can use Marketing automation to add contacts into List from Sitecore 9 Forms instead to create new custom submit action. In this blog, we are going to trigger goal on form and using Marketing automation we are going to add contacts into list when the goal will be a trigger. Prerequisites Create one Goal let’s say “ FormGoalTrigger ” and deploy it. You can refer this link to create Goal. Go to List Manager and create “ Empty Contact List ” with name “ FormList ”. You can refer this list to create List. To save contacts into List, contact must be in xDB, this can be done to create custom submit action to update contact using First Name, Last Name ,and Email. You can take reference from here https://doc.sitecore.com/developers/91/sitecore