I have two date and time fields start date and end date, when user trying to edit date fields if end date is less than start date should throw an error, if start date is empty then it should clear the error and allow user to enter any date in end date, also if end date is greater than start date error should clear.
I wrote below script it's working when start date is not empty, but when I empty the entire field (start date) manually, error is not cleared, but when I clear partially that is if I just remove time or anything from field partially then it's cleared the error. I'm not sure why error is not cleared when I completely emptied the start date, please suggest where I'm doing wrong, below is the script which I wrote.
I also tried for empty field
// startDateStr =="" || startDateStr ==null || startDateStr.toString().trim().isEmpty but nothing worked, please suggest
Hi @Veeresh
I am going to assume you are using ScriptRunner's Behaviour for this.
Please share a screenshot of your Behaviour configuration so I can get a better understanding and try to come up with a solution.
Thank you and Kind regards,
Ram
Hi @Veeresh
Any update? As requested in my previous comment, please share a screenshot of the ScriptRunner Behaviour configuration you are using for this.
I am looking forward to your feedback.
Thank you and Kind regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.