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

Lform is not validating fields when using time as datatype #127

Open
ddjain opened this issue May 11, 2023 · 1 comment
Open

Lform is not validating fields when using time as datatype #127

ddjain opened this issue May 11, 2023 · 1 comment

Comments

@ddjain
Copy link

ddjain commented May 11, 2023

When we validate the lfrom time field its not validating/ not returning null

here is my json
{ "item": [ { "type": "time", "linkId": "request-time-setting", "text": "Send messages at ", "required": true }, { "type": "choice", "linkId": "request-time-interval", "text": "Remind me to send data", "required": true, "answerOption": [ { "valueCoding": { "code": "0", "display": "Every day" } }, { "valueCoding": { "code": "2", "display": "Every 2 days" } }, { "valueCoding": { "code": "3", "display": "Every 3 days" } }, { "valueCoding": { "code": "7", "display": "Once a week" } } ], "initial": [ { "valueCoding": { "code": "0", "display": "Every day" } } ] } ], "resourceType": "Questionnaire", "title": "My Preferences ", "status": "draft" }
Getting below suggestion in my code.
DeepinScreenshot_select-area_20230511194350

@plynchnlm
Copy link
Member

I think the issue is that you are using answerOption.valueCoding on a field with type="time". If you are using version 33.0.0 or greater, you should be able to use answerOption.valueTime.

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