This guide includes a template complaint with cause of action for injunction. It will not fit your circumstances exactly and must be customized.If the judge grants you a long-term restraining order, it can last up to five years. Ask for a restraining order. Step 1 - Get the request (application). The court provides a variety of online services such as finding resources and information, accessing and filling out your forms, and viewing your case. A person seeking a Restraining Order can go to a court and fill out paperwork to apply for the order or have an attorney complete the documents. In California, you would file it in the superior court of the county in which you reside. An injunction is a writ or order requiring a person to refrain from a particular act. The San Bernardino Superior Court offers you this free online program to fill out the forms to request or respond to a Domestic Violence Restraining Order.