Create a new component
Hi, I find it very interesting formio I would like to know if you can create new components, it would be nice to create a component to take capture photos from a web cam or camera phone.
Hello,
Thanks for reaching out. This is available in our File Upload Component. Here is a step by step video on how to do this.
https://www.screencast.com/t/xgrkgNUoM
Please let me know if you have any further questions or concerns.
Thanks!
thanks for the answer is great, the library js has some cost or is open source..
Hello,
The formio.js library is open source, but it ties into our platform which is a hosted and paid platform. Some of the additional features available with our hosted platform are:
- OAuth - OpenID Connect
- LDAP Authentication
- Advanced Webhooks
- Team management
- Collaboration on Forms
- Audit Logging
- Multi-tenant management
- Email Templates (coming soon)
- Temp tokens & Email based authentication
- Report API (aggregated reports)
- Staging and Deployment (SDLC)s
- Form Submission Collections (saving submissions to different collections for indexing)
- Form Versioning
- Dynamic PDF workflows
- Encrypted Fields
- Offline Forms
- File Uploads
- CORS Configuration
- SQL Connectors
- Kickbox integration
- Google Sheets
- Atlassian (JIRA) integration
- Office 365 integration
- Hubspot integration
- CCS templating
Let us know if you want to connect for a technical discussion regarding the different options.
Thanks, I'm going to register your platform to evaluate
Let me know if you have any questions.
Thanks!
@wag110894 Thanks for the feedback. I was also searching for this component. I found the component and made it to work on browser but on mobile i wasn't able to access the phone camera after clicking Take Photo.
Debugging phone on Chrome Remote Tools i got this error.
File.js:375 DOMException: Requested device not found
and on other device it says
ERROR TypeError: Cannot set property 'name' of null
at eval (File.js:387)
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (vendor.js:5125)
at t.invokeTask (polyfills.js:3)
at r.runTask (polyfills.js:3)
at e.invokeTask (polyfills.js:3)
at i.isUsingGlobalCallback.invoke (polyfills.js:3)
I checked on another device this time error was
File.js:375 DOMException: Permission Denied
My app is built on Ionic 3 and tested this on Android Phones only.
Thanks
I believe you need to add this plugin to make it work. https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/
In ionic you may need some other functionality to add navigator.camera which does not come by default in Android.
@wag110894 : I was trying to look for the step by step video you provided earlier in your comments. However, seems like the file resource has been moved or taken down. We were in the need to use forms engine for capturing image from a phone camera. I will be really helpful if you can guide me to the tutotial for this that will save us a lot of time. Thanks in advance !
Hello @nimishdesai1989 sorry about that. Here is a new video on how to accomplish this: https://share.getcloudapp.com/RBu9xqOr.
The process is the same for using your camera.
I hope that this helps.
@wag110894 any chance you still have the video from above? Would be interested to see how this works.
@wag110894 Hi, both previous links fail.