Like this sample
https://national-willow-tit-survey-rspb.hub.arcgis.com/pages/submit-data
in the documentation
https://developers.arcgis.com/survey123/guide/embed-a-survey-using-an-iframe/
If put Survey123 form with camera function in iframe, then the camera function is disabled when open on desktop with browser, but it works well if open on mobile phone with browser.
If not in iframe, then camera function in Survey123 form works well for both desktop and mobile.
Solved! Go to Solution.
Hi @ArthurXiao ,
Thanks for sharing the ArcGIS Hub page which can reproduce the issue. It looks like the iframe code used by the ArcGIS Hub page does not allow the camera privilege (but only the geolocation privilege) for the embedded survey.
Adding "camera 'src'" to the allow attribute of the iframe should fix this, showing in the attached screenshot.
Thanks,
Zhifang
Hi @ArthurXiao ,
Thanks for sharing the ArcGIS Hub page which can reproduce the issue. It looks like the iframe code used by the ArcGIS Hub page does not allow the camera privilege (but only the geolocation privilege) for the embedded survey.
Adding "camera 'src'" to the allow attribute of the iframe should fix this, showing in the attached screenshot.
Thanks,
Zhifang
@ZhifangWang Great, problem fixed, thanks!