Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Need take photo only in upload file

  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #172362 by tpervaiz
Need take photo only in upload file was created by tpervaiz
Is it possible to disable browse and photo library in upload while doing survey through iPad as I want users to take photo only
The topic has been locked.
More
5 years 7 months ago #172368 by jelo
Replied by jelo on topic Need take photo only in upload file
I'm not aware of a way to do that.
There are some new HTML techniques on the way.
www.w3.org/TR/html-media-capture/

But that isn't finalized and implemented everywhere.
anssiko.github.io/html-media-capture/

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #172376 by holch
Replied by holch on topic Need take photo only in upload file
[strike]Why not using the offlinesurveys app on your tablet? It has a specific question type for taking photos.[/strike]

Ignore this. Just saw that you are talking about an iPad. Offlinesurveys seems to be available for Android only.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #172406 by tpartner
Replied by tpartner on topic Need take photo only in upload file
...and, what about the people who respond on an Android device or a desktop?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 7 months ago #172407 by jelo
Replied by jelo on topic Need take photo only in upload file
It all depends on what kind of survey it is. Perhaps a closed user group? Perhaps mysteryshopper? Only the thread starter knows. Is there a browser where the HTML capture tag is working? I'm not the cam guy. I have stickers on my cams ;-)

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #172418 by tpervaiz
Replied by tpervaiz on topic Need take photo only in upload file
So is there anyway if we can disable the browse function through coding? so the user can see only "Take Photo" in file upload question?
The topic has been locked.
More
5 years 7 months ago #172427 by jelo
Replied by jelo on topic Need take photo only in upload file
Disabling is not the issue. Ensuring that the browser used on the device is able to recogzine the html 5 tag for capturing the image of a camera.

A demo (for the back cam) can be found here:
w3c-test.org/html-media-capture/capture_...ironment-manual.html

For the front cam:
w3c-test.org/html-media-capture/capture_image_user-manual.html

www.w3.org/TR/html-media-capture/

I tried this with Safari,Chrome,Firefox (all iOS 11 iPad) and Firefox Windows 7. If a cam is not available, the upload file choose is used. If the a cam is available the cam is started and is waiting to make a shot.

To get this running inside the LimeSurvey upload question, modification to the php code is needed.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #172431 by tpervaiz
Replied by tpervaiz on topic Need take photo only in upload file
The content is working in ipad but the images are not showing in responses

Thanks for replying
The topic has been locked.
More
5 years 7 months ago #172433 by jelo
Replied by jelo on topic Need take photo only in upload file

tpervaiz wrote: The content is working in ipad but the images are not showing in responses

Yes, as I tried to explain. Perhaps someone else can explain it in other words.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose