1

How can I enable IsRobotDetectipn on the form while all the settings for below settings already enabled although I can't do that

Xdb.Enabled.
Xdb.Tracking.Enabled 
Analytics.AutoDetectBots.

enter image description here

2
  • What is the Sitecore version? Commented Sep 27, 2022 at 19:07
  • sitecore version is 10.1.0
    – Sara
    Commented Sep 27, 2022 at 19:20

2 Answers 2

1
Robot detection for Sitecore Forms is enabled by default.

To enable or disable robot detection for each form field:

In the Forms designer, in the Form elements pane, on the Settings tab, select or clear the Robot detection enabled check box.

Robot detection enabled check box.

enter image description here

Note : If you are having problems with robot detection, ensure that your layouts contain the VisitorIdentification tag: @Html.Sitecore().VisitorIdentification()

3
  • what do you mean with layouts and where can i find them?
    – Sara
    Commented Sep 27, 2022 at 18:41
  • You can do this in your main layout for ex mainlayout.cshtml file that should be in your view folder. Commented Sep 27, 2022 at 18:49
  • i did but not working unfortunately
    – Sara
    Commented Sep 27, 2022 at 18:59
0

4 things are important to check :

Xdb.Enabled setting
Xdb.Tracking.Enabled setting
Analytics.AutoDetectBots setting
Result of XdbSettings.HasValidLicense call.

Make sure you have valid xDB license, for that open /sitecore/client/Applications/ExperienceAnalytics/Dashboard url, if it opened without errors, that means that the license is valid for xDB.

In Sitecore 10.1.0 there is no IRobotDetection registration in config. Instead, there is RobotDetectionHelper which uses the following code:

public static bool IsRobotDetectionAvailable => 
  Settings.GetBoolSetting("Xdb.Enabled", false) && 
  Settings.GetBoolSetting("Xdb.Tracking.Enabled", false) && 
  Settings.GetBoolSetting("Analytics.AutoDetectBots", false);

You may create a test page or just try it in debug to see the values of those setting in your web app and which of them is causing issues.

You can try the following url /formbuilder/load?id=&sc_formmode=new&sc_formlang=en&sc_site=shell&_=SOME_RANDOM_VALUE and see the source of the response. It's not easy to read it but you should see something like

isRobotDetectionAvailable":true,"

or false.

If you see true in response, try a new incognito browser or potentially even recycle Sitecore.

1
  • just tried this before i asked the question and not working
    – Sara
    Commented Sep 27, 2022 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.