Question

date validation

Hi community

plz check my code its not working duedate and lessdate validation 

Like 0

Like

2 comments

To check your code, you may do Client code debugging. You can trace your code line by line put breakpoints and to see the values of your variable.

 

https://academy.bpmonline.com/sites/default/files/documents/docs_en/tec…

 

You have 2 times validator checks the same column

Work samples from ActivityPageV2 in UIv2

And you connected the page with row resources? If not, there will be no error message!

Show all page code

setValidationConfig: function() {
	this.callParent(arguments);
	this.addColumnValidator("OffsetDueDate", this.validateOffsetDueDate);
},
validateOffsetDueDate: function(column) {
	var invalidMessage = "";
	if (!this.Ext.isEmpty(column) &&
		this.get("OffsetStartDate") > column &&
		this.get("TimezoneContainerVisible")) {
			invalidMessage = resources.localizableStrings.DueDateLowerStartDate;
		}
	return {
		fullInvalidMessage: invalidMessage,
		invalidMessage: invalidMessage
	};
},

 

Show all comments