I have the scenario where I have specified trainings people can register for. One training has a date and time when it starts and I would like to have this value copied to another field "unpublish", so the training goes offline when the training starts and noone can register for it anymore...the reason I need this "unpublish" field is that it could also be another date/time than the one the training starts...
So what I want to achieve is to be able to access the value of the "date" field and have it as the default value in the "unpublish" field.
I build a custom package with MIGX and everything works fine so far, but I cannot figure out how to to the above task...any hints?
you can create a custom update.php - processor and set the value of unpublish there, if its empty or a new record.