WP-3462: Hide/show fields in form depending on type chosen