Integrating multi-stimuli response properties in one molecule is challenging. This study presents two 2D polymers, [(Bpydp)Ln(H2O)(BDC)]·NO3·2H2O (Ln = Eu(1), Tb(2)), exhibiting rapid photo-responsiveness and the ability to detect specific small-molecule amines. In particular, complex 1 combines the functions of inkless printing, amine detection, anti-counterfeiting, and fluorescence recognition.