How to create survey using logic