I need a “attache files” button for image files on a page.
“Take Photo” is a bug, it does not open devices…
“Pick Files” works with taking photo.
But how can I upload pics from camera directly or from library or my device and can attach it to a formula ?
I tried to copy
Mevis Video seems to work and she seems to be a pro. But if I do exactly the same she does, nothing works… The first problem is, that I can not set page variables with list of objects like mevi dies it. If I click on “List” in the variable menu, it turns to navigation instead of “list”…
Container can also not be shown on the background image like you can see it in the video.
Can anybody help me please?
If there is any support, I also have anydesk to show the real bugs to a support.
Or if the red sunshine reads this, she can help me
Hi there, thank you for the quick answer. I can not open camera with the “Take Photo” plugin. Only when i use “Pick files” my phone opens an “Action Sheet” where i can use “Camera”.
I would like to build a formula where user can attach photos directly from the camera with a small preview window.
This logic works till the “set page variable” … there i still have problems because i understand the theory behind it but if i do it, it does not work…
In this logic i can pic files from the device or open camera from the app, so the app should have the permission for opening the camera.
consiquently the “Take photo” button should also work…
If i use it with “Pick Image from Library, there it asks if i can use cameras” …
All Permissions are allowed, i can use camera with “Pick Images from library”…
I read in the forum that “take photo” does not run fine on android?
You don’t have a Set page variable after the Pick image from library, so the picked images do not get added to the list of images. Adding that should solve the issue of images not showing.
As for the take photo not working, I’m guessing there’s an issue with your If condition and its formula. Seems like it always evaluates as false at the moment, so I would check for any typos in the formula and see that it matches with the Action sheet options.
Create a page variable picked_images that’s a list of objects, with the property path which might have to be a local filesystem path type
After all of the options for picking an image (Pick image from Library, Pick Files, Take Photo) add a Set page variable with the following formula: WITH_ITEM(pageVar.picked_images, {path: outputs["Take photo"].photoFile.path}) (replace Take photo with each function and the photoFile.path might differ a bit according do the function)
Add a container to your page and set it’s repeat-with to the page variable picked_images
Set the container’s background image as the repeated item’s path . If there’s an incompatibility issue, use a formula and ignore the warnings.
Set a width and height to your container, whatever you like
I’m not sure if Mevi has that exact same flow but it should be quite similar.