Hi Support team,
In 14.0
DateRangeItem validate retuns false with "Must be a Date" message even though there are valid dates. Please refre the screen shot and below code
VStack mainLayout=new VStack(5);
DynamicForm form=new DynamicForm();
DateRangeItem rangeDate=new DateRangeItem("range","Dates");
rangeDate.setRequired(true);
form.setFields(rangeDate);
mainLayout.addMember(form);
IButton btn=new IButton("Validate");
btn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
form.validate();
}
});
mainLayout.addMember(btn);
mainLayout.draw();
Thanks,
Revan
In 14.0
DateRangeItem validate retuns false with "Must be a Date" message even though there are valid dates. Please refre the screen shot and below code
VStack mainLayout=new VStack(5);
DynamicForm form=new DynamicForm();
DateRangeItem rangeDate=new DateRangeItem("range","Dates");
rangeDate.setRequired(true);
form.setFields(rangeDate);
mainLayout.addMember(form);
IButton btn=new IButton("Validate");
btn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
form.validate();
}
});
mainLayout.addMember(btn);
mainLayout.draw();
Thanks,
Revan
Comment