A dynamic form processing Snippet for MODx Revolution