Questions tagged [validation]

For questions related to Sitecore item and field validation rules within the Sitecore Client

Filter by
Sorted by
Tagged with
1
vote
0answers
511 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 ...
0
votes
2answers
313 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....
0
votes
2answers
294 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 ...
0
votes
1answer
411 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. ...
0
votes
1answer
2k views

The constructor to deserialize an object of type is not found

I'm trying to set a validation rule for max.length on a text field. The following code works. For the related item, if the text entered is more than 100 chars., it shows the sitecore validation ...
0
votes
1answer
79 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
1answer
27 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}")...
0
votes
0answers
57 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'...

1
2