View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008481 | mantisbt | custom fields | public | 2007-10-18 15:43 | 2019-08-25 12:38 |
Reporter | pluntke | Assigned To | atrol | ||
Priority | normal | Severity | feature | Reproducibility | have not tried |
Status | closed | Resolution | duplicate | ||
Product Version | 1.1.0rc1 | ||||
Summary | 0008481: default value for date type fields (variable) | ||||
Description | found the request (but no answer) in the forum and I'm interested in it too: default value for custom fields of type "date" like "today()" or "today()+3" | ||||
Tags | No tags attached. | ||||
Sounds like a good idea. However, we need to specify a format that is easy for users to remember and easy to parse as well. The format should be parsed and processed, we should not eval() (i.e. execute a string as PHP). I am not saying you are referring to that, but I think it is useful to make it part of the feature requirements. If we need to always add a date offset, then the default can be 0 for today, 7 for a week from today and -7 for last week. Any thoughts relating to the format? |
|
Just some more thoughts on it: Will this be possible within the config-file or on the custom_fields' webpage? thinking of values which are used in some software as shortcuts for quick date entries like t for Today Don't know if this is localizable to all countries? maybe you could "count" with these letters too: absolute numbers could be added You also could think of these letters to be used not only for setting a default for the date fields but also to be usable by reporters: At the moment the partitioning of date entry into three fields is little inconvenient (depends on what you are used to) - many other software is more tolerant to date entries (into one single field) Even for accepting letter-coded entries as above a single field entry would be probably easier to come along with from the programmer's view AND from the user's (knowing where to enter the letter when there are not three fields). |
|
PS: you could also use these letters for first of next month which would be: "hhm" 1) step to last of actual month or "rmm" combining letters shows the strength of the system |
|
I have implemented yesterday, today and tomorrow default values ( http://deboutv.free.fr/mantis/plugin.php?plugin=LongCF ) I'm not sure that "tmhyr" idea is readable but I have nothing else to propose. |
|
Just thought this would be interesting as well: |
|
duplicate to 7643 |
|