Validate Plumsail Date field

Hello @DryChips,

Yes, we are aware of the date field behavior. The Date field is based on Kendo UI DatePicker and it works as designed.

We will possibly update the field in the future, but there is no exact date. For now, you can add a custom validation to make sure the field value is valid:

fd.field("Date1").validators.push({
    name:"Date validation",
    error:'Enter a valid date',
    validate: function(value){
        if(!value){
           return false;           
       }
        return true
    }
})

If you want to change the display format of the selected date, you can set it using the code:

fd.field('Date1').widgetOptions = {
    format: 'dd/MM/yyyy',
}
2 Likes