Hi Simon

Aftercreate is the wrong place. Use beforecreate.

Alternatively use initformdefaults...