This invention relates to a taste masked pharmaceutical composition in the form of rapidly dissolving film comprising Sildenafil or its isomers, enantiomers, pharmaceutically acceptable salts thereof and polyacrylic resin. The said film optionally contains one or more pharmaceutically acceptable excipients and is substantially free from surfactant and P-cyclodextrin derivatives. The pharmaceutically acceptable excipients include polyaicohols, sweetening agents, thickening or gelling agents, colouring agent and flavouring agent.