Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Manual Date entry resulting in Dec 31, 1969 entry

Gabe Belknap
Contributor
April 29, 2021

Hi folks, hope all are well.

Within my Confiform intake, I have a date field that if folks do not use the date picker and add a date manually in the wrong format, upon creating the JIRA the date defaults to Dec 31, 1969.

I have tried to add a rule to prevent this from happening, although unsuccessfully.    

Any thoughts on how I can force the user to use the selector or ensure if they add the date manually they enter in the expected format?

Thanks in advance

2 answers

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
April 29, 2021

You can set up a rule to validate that the date given (it's timestamp) is after some certain date

This tutorial shows how to compare the dates, but your use case is even simple, as you need to check against some numeric value (you decide what is teh minimal date you can accept and convert it to a timestamp to compare against)

https://wiki.vertuna.com/display/CONFIFORMS/Conditional+validation+rules+and+date+fileds 

Gabe Belknap
Contributor
April 30, 2021

Thank you Alex. As always, you are a great help!

0 votes
Gonchik Tsymzhitov
Community Champion
April 29, 2021
Gabe Belknap
Contributor
April 29, 2021

Hey Gonchik

I saw that post actually, but similar to that person I am not able to get that to work.

Are you able to help me understand what my rule might look like to force the date to be greater than 0?

Thanks

Gonchik Tsymzhitov
Community Champion
April 29, 2021

Hi @Gabe Belknap , 

I think you need to digg into js code and meanwhile raise ticket to vendor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events