How do you file a lawsuit online?

You need to call the court where you need to file and ask them.