Why is the って used in this sentence?
どんな時に幸せって感じますか
って here is an informal way of saying と. Have a look at the answer in this thread:
Confusion with に、を、と particles used with verbs like 感じる