Ethyl (hydroxyethyl) cellulose was functionalized with Brooker's merocyanine. The modified polymer was easily transformed in a film, which could be used as a highly selective chromogenic and fluorogenic chemosensor for the detection of cyanide in water, with