How can i apply condition in options of dropdown?