-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No optional date field #79
Comments
I found a way to allow a blank for expiration dates. In the "Template" tab of one of the template entries that you have created, use a "Field Name" of "@exp_date" for expiration dates. This appears to make your expiration date field the same as the "Expires" field found at the bottom of the "General" tab of entries created as children of the template. I do not know of a way to leave any other field blank or optional that is assigned a type "Date" or "Date Time". |
Date, Time, and Date Time fields cannot be made blank as far as I can tell. While using a text field "works" we lose the format enforcement that comes along with these other fields. KeePass v. 2.51.1 (64-bit), KPET v. 8.0.0.0 |
While I could allow the blank/nullable option in the options for these types the problem is the picker. The UI expects no more than one true input control for each type and only one value to manager, and the date time picker in winforms doesnt have the checkbox option. Keepass just adds an extra checkbox next to it to control if its enabled or not, which works but not in this case where we are normally single control. I could potentially create a custom control that allowed for a nullable date/time value and had an option if nullable was allowed or not. That would give me a single control and single value to read. If someone wants to do that winform control up I would be fine to handle the rest. |
If I define a template field as a date, there seems to be no way of leaving it blank in a child entry
(Probably the same for time fields though I haven't tried)
I could just make it a text field, but the calendar selection is useful for when I do want a date.
The text was updated successfully, but these errors were encountered: