A multi-responsive Cd(II) coordination polymer (1) has been constructed by introducing a viologen derivative as both the framework backbone and ligand side pendant. Notably, compound 1 exhibits intriguing properties, including photochromism, methanol-assisted photochromism and chemochromism to ammonia. Furthermore, compound 1 also displays fluorescence pH sensing ability in a wide pH range.
