Toggle form elements depending on doc type