I am building a field type for Craft that needs to do additional processing to the saved data once the element id is available. For this reason, the prepValueFromPost()
method won't work, since the element id isn't available yet.
So how to update the content of the current element from the onAfterElementSave()
method?