Hi,
I have a form with DateItem and I need to display text like "No date specified" when no date is selected. I tried to use item.setEmptyDisplayValue("No date specified") but it did not work. (It worked only for text items.)
I also tried this code in onChange():
This works, but the date validator has a problem with it. It shows warning "Please enter a date with the following format".
Is there some elegant solution for this problem?
I have a form with DateItem and I need to display text like "No date specified" when no date is selected. I tried to use item.setEmptyDisplayValue("No date specified") but it did not work. (It worked only for text items.)
I also tried this code in onChange():
Code:
if(item.getValue() == null) item.setValue("No date specified")
Is there some elegant solution for this problem?
Comment