Update CB field value after image is uploaded

3 years 1 month ago - 3 years 1 month ago #323756 by boyjahq
We have created an image field in CB (cb_permitphoto) that allows users to upload a photo that is then used as part of a printable member permit. We would like to update the value of another CB field we have created (cb_activemember) once the user has uploaded a photo to cb_permitphoto.

Is this possible? Is it possible with Auto Action? If so, what action type and trigger(s) would we use?

And if not with Auto Action, is this achievable in another way within CB?

And would it be easier to do if we required moderator approval of the image? Does that give us more options for the ability to modify the other CB field?

Please Log in to join the conversation.

3 years 1 month ago #323765 by krileon
Replied by krileon on topic Update CB field value after image is uploaded
You can use CB Auto Actions to act on field change and perform whatever action you like. See the below on how to do this.

www.joomlapolis.com/forum/153-professional-member-support/242902-solved-triggering-an-email-message-based-on-a-field-change-status#320476

So for example using the above you could use a Field action to change the value of a field based off another fields value being changed. As for what triggers to act on they are as follows with explanation of where they apply.

onAfterUserRegistration = frontend registration
onAfterNewUser = backend registration
onAfterUserUpdate = frontend edit
onAfterUpdateUser = backend edit

And would it be easier to do if we required moderator approval of the image? Does that give us more options for the ability to modify the other CB field?

No.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.272 seconds

Facebook Twitter LinkedIn