-
Notifications
You must be signed in to change notification settings - Fork 1
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
Lmb 1226 | can mark custom field required #458
Lmb 1226 | can mark custom field required #458
Conversation
5806cfb
to
092a696
Compare
0b99724
to
53ae14b
Compare
get canShowRequiredToggle() { | ||
return this.displayType.uri !== ADRES_CUSTOM_DISPLAY_TYPE; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important the adress component cannot handle the validations as other rdf inputs do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we not just make it handle that then? Its value is just a uri so i think the default checks should work for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works with an adres as displaytype but I can't seem to make it work for the library entry "Verblijfplaats", the path of the validation and the field are the same. I removed the restriction of the required toggle not showing, the remark will than be that the verblijfplaats field will CAN be filled in as empty.
14ba654
to
439b213
Compare
599008b
to
55e0bc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apart from this, when changing field type a couple of times, the "dit veld is verplicht" error message is duplicated and see if you can fix the behavior when something that is not a number or date is filled in but the type is changed to number or date. Nothing is shown and the form can be saved because there is a value. Maybe it should clear that value in that case?
get canShowRequiredToggle() { | ||
return this.displayType.uri !== ADRES_CUSTOM_DISPLAY_TYPE; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we not just make it handle that then? Its value is just a uri so i think the default checks should work for it?
6043bb7
to
95c46fb
Compare
01f4d46
into
karel/lmb-333-create-form-extensions
Description
You should be able to add a telephone number field that has phone validation + make it possible to mark a field as required
How to test
Add these fields to a form and see if the validations are correct.
Links to other PR's
Attachments