Questions tagged [validation]
For questions related to Sitecore item and field validation rules within the Sitecore Client
60
questions
2
votes
1answer
26 views
Sitecore Forms string length validator not working for other languages text
I am using a Sitecore Forms string length validator which is working perfectly fine for English content, however if I am providing content in say Japanese language then in that case it is not working.
...
1
vote
1answer
25 views
Adding validations to marketing automation activity type parameters
I'm using Sitecore 9.3
Is it possible to add Sitecore validations to the parameters of a marketing automation activity type? I have a parameter called "Title" for example, and I'd like to ...
0
votes
0answers
33 views
How can I auto detect current form's id in Sitecore
I want to create a custom email validator to check if email exists or no to do that I must know the form's id so that to get its data I can do that using this code
ID ID = new ID("{form id}")...
1
vote
1answer
67 views
Create Validation Rules via JSS
I'm working on a Sitecore 9.2 JSS project that needs a required field that results to FatalError. The default required field in Sitecore is using CriticalError.
I can create it manually in Sitecore ...
1
vote
1answer
56 views
Show Multiple Validation Failures Of The Same Type In Experience Editor
I have created a few custom field validators in Sitecore and I'm running into an issue when testing them in the experience editor. For each error, I only see one banner at a time showing a failed ...
1
vote
1answer
114 views
Enforce Site-Wide Alternate Text Validation On General Link Fields
I am working on Sitecore version 9.1. When attempting to insert a link using the general link field, the user is prompted to enter the following information:
In an effort to enforce accessibility on ...
0
votes
1answer
73 views
Custom CSS for Validation Message in webform for marketers 8
I want to styling validation message in webform for marketers. But I can't find where I can define CSS class or CSS for validation message.
0
votes
2answers
259 views
Apply validation rule to a specific item in content tree
I need to apply a regex based validation to see the number entered by content author is between 1 and 5 only. Problem is the validation should be applied to only specific content item only. ANy idea ...
1
vote
0answers
34 views
Sitecore Form with Salesforce Connect - Custom validations for postcode using external API
The custom validation for the postcode validation using Sitecore forms for a simple contact form which connects to salesforce.
I have seen multiple articles for the custom validation and also ...
1
vote
0answers
42 views
On Item Creation: Warning/Confirmation dialog for invalid Item Name
I want to create a Warning/Confirmation dialog when certain items do not pass our custom item name validation rules. The user can still override the warning dialog via OK/Cancel Buttons.
I've tried ...
3
votes
2answers
390 views
Dynamic DataSource for Droplist in Content Editor
I have a Droplist for Approvers and the DataSource of Droplist to /SharedData/Approvers.
I don't want the current user to have his own name in the list.
For example, DataSource List is having A, B ...
2
votes
0answers
79 views
Run Validation Item on Save in Experience Editor
I have created a custom Rule in /sitecore/system/Settings/Validation Rules/Item Rules
When I press the validate button, I can see the Rule and its result, so far so good. But the Validation Button is ...
0
votes
2answers
285 views
Allow all characters in ItemNameValidation setting
Trying to install a package which has the item names with characters like (', '.', ').
How can I temporarily disable ItemNameValidation setting? Tried changing the setting to '.*' which did not help....
1
vote
1answer
462 views
How to remove the blank field for Sitecore Droplink and Droplist
In Sitecore 9.0, when I create a Droplink or Droplist Sitecore generates a "blank" selection. For example I have a Droplink from Monday to Sunday, the first option will be a blank selection.
How can ...
2
votes
1answer
55 views
Hide components in preview mode when there are field validation errors
I am using Sitecore 9.0.2 with SXA 1.8.0.
I extended the Required Field validator with the Result=CriticalError parameter, so the authors can see an alert each time they edit a page in Experience ...
1
vote
2answers
182 views
When validating an item in a workflow action, null reference error?
So, I have an item with a couple of fields that have required validation rules.
I've added a validation action when executing a workflow action (submitting to admin for approval). When I do this a ...
1
vote
1answer
94 views
Users can publish even when item has blank fields marked with required validation rule
I have Sitecore 8.2, have the template for my item assigned to our custom workflow, I have all validation rules set to Required for the fields in question.
Yet I can move the item through the ...
2
votes
1answer
109 views
Validation error displayed on custom experience dialog incorrectly
In an SXA site I have cloned link list with item, and added a link custom editor button to allow editing of the list item fields. These fields have required validation. But I find that when I add ...
0
votes
0answers
56 views
FatalError Required validation not working in sitecore 9.1 [duplicate]
i'm using sitecore 9.1 with SXA 1.8, i had the same problem in the this question, i tried to follow the solution mentioned there, i created a new user and gave him some read/write permissions while it'...
2
votes
1answer
100 views
How to prevent an item from being moved to another folder accidentally?
I have 3 items in a folder based on the same template. Is there any functionality provided by Sitecore to prevent these items from being moved to another folder accidentally or deliberatively? Or we ...
1
vote
0answers
458 views
FatalError Required validation not working
I am using SXA 1.8, and Sitecore 9.1
I am trying to add a validation for a Date type field where it is required, and the user cannot save the item unless this field has a value, I have copied ...
2
votes
2answers
2k views
'IServiceProvider' does not contain a definition for 'GetService'
This is the first time i deal with custom validations, but I need to create a unique email validation using sitecore 9.0.2 and SXA 1.7.1 so i was following this tutorial
http://sitecoresolution....
3
votes
2answers
2k views
Make one of two sitecore content fields required?
I've been trying to find a way to make one of two fields valid and haven't come up with much. Is there a way to do this with custom field validators or is that just relevant to individual fields? ...
6
votes
1answer
325 views
Remove Alt Required validation from image
I need to remove Alt required validation from Alt field in Image template, I removed Alt required validation from template image in path /sitecore/templates/System/Media/Unversioned/Image
But when i ...
2
votes
1answer
396 views
How does Image Size validator work?
I wanted to set image size validation for an image field for example the image field should not accept any image more than 2 mb. For this I tried using Image Size validator available in Sitecore.
...
6
votes
1answer
158 views
“Linked Item Has Allowed Template” Field Validation XP 8.2
We're trying to validate a Droptree field to only allow a certain template type be selected. We've found the /sitecore/system/Settings/Validation Rules/Field Rules/System/Linked Item Has Allowed ...
0
votes
1answer
405 views
How to add required field validation to SXA Tags field?
I created SXA Tags in the Sitecore and I know how to add this tag to an item but I want to add the required field validation to the Tag fields, so I can not save the items without adding tag to it.
...
2
votes
0answers
126 views
WFFM - Custom validation class on form not being hit
Using Sitecore 8.2
I have a form and I'm trying to add custom validation to the email field to block forbidden domains. I created the validation item in Sitecore and added it to my field:
and I ...
8
votes
1answer
668 views
Standard Required field validation reporting field is empty after upgrade to Sitecore 9.0 Update-2
We're getting an interesting validation error after upgrading from Sitecore 8.2 Update-6 to Sitecore 9 Update-2.
We have the standard Required validator on a field (item name of the field is Title). ...
1
vote
1answer
87 views
How to force the date filter to pick “from” date before picking “to” date?
I'm using Sitecore 9 and SXA 1.7. I have the SXA date filter component that I am using to filter some results, however, I noticed that it can let me choose the "to/end" date without choosing the "...
6
votes
1answer
453 views
Sitecore 8.2 MVC site setup and Issues
I am creating a Sitecore 8.2 MVC test website and I am getting a couple of errors and client form validation Issues. Get methods are working fine but the post method is not working. I have exact same ...
2
votes
1answer
650 views
Field validation not working correctly
We are on Sitecore 8.2 and just upgraded to update 7 from update 2 and we are now experiencing issues with field validation. When a user goes to approve or publish an item after making changes they ...
1
vote
0answers
111 views
How can I move validation summary on WFFM to display at the bottom of the form?
I'm trying to change the position of WFFM form validation summary in Sitecore 8.2 update 5. My form is very long and by default, the validation summary displays at the beginning of the form so the ...
4
votes
0answers
343 views
Apply field validations across fields
I'm building a component that, among other fields, contains "title" and "text" fields. The business logic is:
If both fields are empty, that is OK
If both fields are populated, that is OK
If one ...
4
votes
1answer
1k views
Stop user from saving and publishing when a field is Empty
Is there a simple way of stopping user from saving and publishing when a field is empty?
2
votes
0answers
635 views
Custom Field Validation in WFFM (MVC)
In our website, we have the requirement to validate some WFFM Form field's based on third-party system data. We want to display the error message near to field (like required field validation).
Is ...
2
votes
1answer
2k views
Sitecore Field Validator Change to Custom Message
I have a field that is a required field validator in Sitecore.
I marked that field as required and Set the parameter=FatalError so that users cannot save the item without entering data in that field. ...
1
vote
0answers
498 views
Custom Validator - Updated Error Message is not Displayed
I created a custom validator for a multi-list field which checks the number of selected items based on the min and max count set in a configuration item.
On debug mode, the validator is being called ...
2
votes
0answers
357 views
Adding a validator to a field type in WFFM does not work in 8.2
I need to add some custom validations for my form fields, beyond what can be done by regexes. I have created a custom validator using this approach, assigned it to the built-in Single-Line Text field ...
4
votes
0answers
225 views
Experience Editor - “” is not a valid number
I am currently facing an error with the Experience Editor and integer field.
So I have a Datasource template that has a field of integer type (without validation - meaning not required). Through the ...
5
votes
1answer
316 views
WFFM 8.2 number field regular expression validation Message
I am facing an issue with wffm number field regular expression.
Wherever a user enters alphabet characters in a number field it's showing default value "Field contains an invalid number." but i have ...
1
vote
1answer
582 views
WFFM How to build custom Email-Confirmation field
I need to build a registration form in Sitecore 8.2 (update 4) using Web Forms For Marketers (WFFM) and MVC. How can I build email and email-confirm fields to verify that the user has typed the ...
12
votes
2answers
3k views
Special Characters and Spaces in Display Name
Sitecore constructs the default URL of an item based on its 'name' and it can also be configured to use 'Display Name' instead.
There are Sitecore routines that prevent the content editor from typing ...
2
votes
1answer
521 views
Multi List field validation fails and unable to update field value from Experience Editor
Updated:
I have added field validations to multi list field to select items from the data source, validation works fine in the content editor. But In Experience editor, validation error message ...
4
votes
1answer
1k views
Sitecore validation rule at field level in multi-list value selection range
I came across this multi-list field restrictions to limit range(selection) using regex. I got few references to add basic validations. Both work fine.
Ref1: ^({[^}]+}\|?){0,5}$ http://www.benramey....
9
votes
3answers
1k views
Item validator access already stored data instead of newly inputed data
Im facing a problem with sitecore item validator when I try to save the data.
The purpose of my validator (the class inherit from StandardValidator) is to simply check if, atleast, field A or field B ...
1
vote
1answer
280 views
Suppress validation not working on Experience Editor
I have implemented multiple validations in base template field items and suppressed most of the validation in each children template standard values using the "Suppressed validation rules" field.
It ...
6
votes
2answers
1k views
Field level Validation Rule => “OnSave”?
I need an 8 characters length enforcing validator. I created a MaxLength=8 and combined it with a MinLength=8 validation rule.
Then I enter "1234567890123' and it's saving, no question asked!
It ...
6
votes
3answers
1k views
How to prevent publish item using validation rule?
I can publish an item with a blank field that have validation rule where required. How can I use workflow to prevent publish item with a blank field?
7
votes
2answers
589 views
How do i validate an image for byte-size in Content Editor?
I would like to Validate the Image Field say i shouldn't allow the image more than 1 MB. How do I do that in content editor?