My registers users in a diving club are autoriser to update the date of their medical certificat after uploading it on their profile.
cbprofileupdatelog informs our moderators of the changes.
We shall control the date of medical certificat is consistant with the document. Ounce a moderator has controlled and eventually corrected the date, I want the the other moderators are informed and therefore do not control twice.
I have added a read only "date checked" field and cbprofileupdatelog does the information job.
The trouble is that this "date checked" field shall be reset one year after the date of this medical certificate.
How can I do that with CB Auto action ?
Last edit: 5 years 8 months ago by krileon. Reason: Added [SOLVED] tag to subject
You want it to reset automatically after a year has passed from the given date in the field? That's doable but unless you do it on something like when the user logs in it's going to be a heavy operation. Seams like it would be better to just reset the date using CB Auto Actions on the after user update trigger when they upload a new medical certificate.
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.
I found a workaround : Create a checked date - read-only, moderators are informed with profile-update-plugin that I also activated also on back-end changes that one of them has checked the date.