How do you do documentation of validations and system messages?

I am wondering how can I write full documentation of all form validations and system messages on our e-commerce website. I use activity diagrams, but I have some issues with them: keeping them up to date or I have so many of them (a few for each form and a few for every step in user flow).

What tool or framework do you recommend?