If/then populate fields