A film-forming composition including a triazine ring-containing hyperbranched polymer with a repeating unit structure indicated by formula (1), and inorganic micro particles is provided. This enables the provision of a film-forming composition capable of hybridizing without reducing dispersion of the inorganic micro particles in a dispersion fluid, capable of depositing a coating film with a high refractive index, and suitable for electronic device film formation.(In the formula, R and R′ are mutually independent and indicate a hydrogen atom, an alkyl group, an alkoxy group, an aryl group, or an aralkyl group, and Ar indicates a divalent organic group including either an aromatic ring or a heterocyclic ring, or both.)