conditionally send e-mail and change checkbox_field status

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
fgazza
Veteran Member
Posts: 205
Joined: 2019-04-30 17:37

conditionally send e-mail and change checkbox_field status

Post by fgazza » 2019-11-19 13:22

Hello everybody
in the file participate.php of my hook folder I have a code to send an email to the address entered in the "email_address" field every time a participant adds a record in the table "participated".
I would like to add a condition so that the sending of the e-mail works only if no more than 15 days have passed from the date of the event (set in the "event_date" field of the "participate" table).

Moreover I would also like that after 15 days from the date of the event the check box field "booking_active" passes from checked to uncheked (I think from 1 to 0).

Can anyone help me with the code?

Thanks!

Fabiano

Post Reply