Conditions for the formation of coordinate bond are:-
1) For the formation of a coordinate bond, the atom acting as a donor must have complete octet and one lone pair of electrons which may be donated by it to the acceptor atom.
2) The acceptor atom must have incomplete octet and short of pair of electrons in order to complete the octet/duplet.