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
Add support for Signature Widget in forms #8308
Comments
I have started a branch containing changes for this issue: https://github.com/medic/cht-core/tree/8308_signature_widget Currently all I did was add the linkage for the Enketo widget so the widget can be used in a form. Here are the issues that i have noted so far:
|
@garethbowen do you have any concerns with including this widget (once we get the functional issues resolved)? I know we originally excluded it due to bundle size, but based on the ongoing forum thread linked above, there is community interest in having this widget and seems worth including in the bundle.... |
I had a look at that branch. For now, importing the widget increases 125.87kB the cht bundle size (CSS + JavaScript), which is still fine IMO. The widget is used by adding the We need to include an explanation of how it works and the implications of adopting this feature. Such as having the user’s phone store the form’s images. I have some questions related to the project logistics; when it comes to using this feature effectively:
|
@latin-panda Great questions! For |
@latin-panda These are all great questions but governance environments are weird. Anything other than strong biometrics or cryptographic key can be faked, and even these can be threatened in some ways. I know we require a signature. It doesn't make sense. But IMO an app like CHT needs to be able (within limits) to operate in irrational regulatory environments. Re bundle size, surely something like this should be easy to lazy load? |
Is your feature request related to a problem? Please describe.
As noted on this forum thread there is a need to collect signatures within Enketo forms.
Describe the solution you'd like
An Enketo Widget already exists for doing this, but is not one of our currently enabled widgets. During the uplift to Enketo 5.x, I did briefly test that widget, but it was ultimately not included. At the time we did not have any usecases where it was needed and so there was not much to justify the increase to the bundle size for the webapp (the drawing libs associated with the widget are not small),
Describe alternatives you've considered
We could roll our own drawing widget. This might result in a more lightweight solution, but would be extra code to maintain.
Another alternative would be to see if the use-cases for the signature widget could be covered by just using the trigger widget (I know a lot of "official" online forms that let me "sign" just by checking a box...).
The text was updated successfully, but these errors were encountered: