How will I be asked to be a witness?

summons
a formal document issued by a court which says someone must appear in court on the date stated in the document.

The person (or their lawyer) or prosecutor who needs your evidence will ask you to go to court as a witness.

You will be served with a witness summons for both criminal and civil matters.

Tell them if you have previous arrangements (such as a hospital visit or a holiday) that affect when you can go to court.