Automatically Selection based on last question

@sudeep, this post discussed previously should help you solve your issue: