Novel salicylic acid derivatives connecting to five-membered cycle through an acyl hydrazone bond as multi-stimuli responsive fluorescent smart materials with photoswitching properties.