Skip to content
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

Open
Schizolocal opened this issue Sep 20, 2021 · 3 comments
Open

No optional date field #79

Schizolocal opened this issue Sep 20, 2021 · 3 comments

Comments

@Schizolocal
Copy link

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.

@caramelized-jd
Copy link

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".

@tgardner42
Copy link

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

@mitchcapper
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants