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

maxValue for type date #131

Open
Harown opened this issue Jun 19, 2023 · 2 comments
Open

maxValue for type date #131

Harown opened this issue Jun 19, 2023 · 2 comments

Comments

@Harown
Copy link

Harown commented Jun 19, 2023

Hello,

I tried to set the maxValue extension for a date field to no avail: https://jsfiddle.net/ky0gs3tn/1/

Is maxValue for date not (yet) supported?

As a workaround I tried to add the nzDisabledDate attribute to the nz-date-picker element like nzDisabledDate={d => d.isAfter('2022-12-31')} but since the date picker is already rendered this has also no effect.

Any other possibility to set a max date?

@plynchnlm
Copy link
Contributor

No, it seems we only support maxValue on integer and decimal. Also, I can't think of another option. (Well, you could use questionnaire-constraint, but we don't support that either yet.) I've added an internal tracker item for it. Please let me know how critical this is for you. We have a number of fixes and features in process, including R5 support.

@Harown
Copy link
Author

Harown commented Jun 22, 2023

Thanks. That's not critical. We even made questionnaire-constraints work by using fhirpath so it's a good idea to implement it that way. 🙂

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

No branches or pull requests

2 participants