Date expression validation not working as expected

Options
Tom_944137
Tom_944137 Posts: 40
edited December 2020 in Questions
  1. I assign a value to the form field expiration-date (type = date) upon workflow start.
  2. My first action is a manual task with field form project-end-date (type = date). I'd like to restrict this such that project-end-date must be on or before expiration-date. My expression validation is:
DateTime(this) <= DateTime(fields["expiration-date"])

This is not validating. Whether I choose project-end-date before or after expiration-date, the expression is always validated as true.

Does anyone know what I'm doing wrong here?

Answers

  • Sarah_154708
    Sarah_154708 Posts: 13 admin
    Options

    Hi @Tom_855096
    Thanks for reaching out with your question.

    This date expression and field reference is currently not working together as expected. We have this issue documented for further review and we will follow-up once addressed.

    Any updates will be available here where this issue was originally posted: https://community.pushbot.com/discussion/comment/1167

    Let me know if you have any other questions!