Custom fields => Regular expression for validation (optional)
I added a new Custom field: "Proposed Date".
I want to make sure that everybody only uses the following format when using the date filed.
The format should be: DD/MM/YYYY
How can I realize this? There is a field available when creating a new custom field called:
"Regular expression for validation (optional)".
But what should I put there to validate for: DD/MM/YYYY
Thanks in advance
deniz
· 1 |
|
Wednesday, February 15, 2006, 2:27:59 PM |
0
|
Put the following : (0[1-9]|[12][0-9]|3[01])- /.- /.\d\d |
||||
|
0
|
Thanks for the fast response. I just added the code above to the "Regular expression for validation" field, but when creating or editing issues, the users are still able to add values like "010106" or "23rdFeb06". |
||||
|
0
|
Should work, test on http://beta.countersoft.com/ Create / edit any issue in the test project. Can you enter any date? If not then make sure you have entered the correct regular expression. |
||||
|
0
|
Yes, I've checked at http://beta.countersoft.com in the Test Project and it looks perfect. It is validated immediately when leaving the Date Field. This is absolute great! But in our Gemini (also 2.0.2) it still dosn't work. Although I used your above mentioned regular expression, the values in the field are not validated and it can be saved anway. In the Test Issue which I've created I've attached a screenshot which shows the details of my custom field, maybe something should be changed?
Thanks in advance
|
||||
|
0
|
Seems like an ASP.NET issue on your web server: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfaspnetiisregistrationtoolaspnet_regiisexe.asp Run this tool with "-c" option and should fix your problem. |
||||
|
0
|
Excellent, the magic "-c" solved the problem. :) Thank you very much! |
||||
|
0
|
Hello, |
||||
|
0
|
Check this out: |
||||
|
0
|
How did you actually add the field to the CreateIssue.aspx screen? |
||||
|
0
|
By creating a custom field from the project home page -> Project administration |
||||
|
0
|
Ah, excellent. Is there a way to put some of the standard fields and hide some of the standard fields on the create issue screen? |
||||
|
0
|
Not at the moment. |
||||
|