Sauter la navigation

[Résolu] Adding photo from smartphone

This support ticket is created Il y a 1 année et 5 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par Anthony Il y a 1 année et 5 mois.

Assisté par: Minesh.

Auteur
Publications
#2622625

Is there any way, using Toolset Forms, to add a photo to a new post directly from a smartphone's camera?

#2622647

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I tried and tested with following reference site where form offers upload button:
- lien caché

when I click the upload button available with the above form using Samsung (Android) mobile, it shows me options as apps:
- camera
- camera (camcoder) and
- files

When I select the option camera it allow me to take a picture and when I click the picture and click ok button the file does available for upload using the upload button.

Can you please try and check or tell me how exactly you want to upload the file using mobile?

#2622683

Minesh - this is awesome! I tried it with an iPad and it worked. Thank you so much for checking this out for me. I have one other need on the form: an "asset number" that increments by one for each successful submission. Is that a simple thing to accomplish?

#2622691

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I would like to know - do you want any random number or you want to store number in serialize manner so first submission will have and second submission have 2.

#2622693

I want to store the asset number in serialized manner (that's why I wrote "increment by one..." in my first reply 😉 .

#2622695

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

ok - you can use the Toolset form hook "cred_save_data" or "cred_submit_complete" in order to make sure increment to the number based on the submission.

More info:
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_submit_complete

Here is the reference ticket with code that may help you:
- https://toolset.com/forums/topic/auto-incrementing-number-field/#post-1460033

#2623259

Great support as ever. Also I just saw the 'Supporter Working Hours' for the first time and think that's a brilliant enhancement to the support process.