Skip Navigation

[Resolved] Adding photo from smartphone

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.

Our next available supporter will start replying to tickets in about 0.64 hours from now. Thank you for your understanding.

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)

This topic contains 6 replies, has 2 voices.

Last updated by Anthony 1 year, 4 months ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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:
- hidden link

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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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.