Hello All, This might be silly but I am not able to find any solution

Hello All,

This might be silly but I am not able to find any solution for this. Seeking a help over here.

I have used datetime field to display Goal date. Put validation on that field so that user can't select past date. Now many a times user just selects date in past and not selecting any time and submits the form for further process. In this case the validation is not applied as it will only be applicable when both date and time are selected.

I am in need of some way so that I can display some default time (let say 12:00AM) so when user selects only date, the validation should be applied and it gives result.

Attached screenshot for better understanding. Let me know your thoughts.

Thanks!



OriginalPostID-209005

OriginalPostID-209005

  Discussion posts and replies are publicly visible

Parents
  • Tapan -
    A low overhead approach to solving this problem could be to add a checkbox indicating that a goal will be set.
    You can configure the date time field to be disabled, and not required unless a "Set a Goal" checkbox is checked.
    Use the checked value of this checkbox to drive the behavior of the datetime, e.g. when checked, required = true, and disabled = false; when unchecked, required = false, and disabled = true.
Reply
  • Tapan -
    A low overhead approach to solving this problem could be to add a checkbox indicating that a goal will be set.
    You can configure the date time field to be disabled, and not required unless a "Set a Goal" checkbox is checked.
    Use the checked value of this checkbox to drive the behavior of the datetime, e.g. when checked, required = true, and disabled = false; when unchecked, required = false, and disabled = true.
Children
No Data