# New Method Wizard

## Overview

The **New Method** wizard in Servoy Developer provides two different interfaces depending on whether the method is being created in a form or in a global scope. Below are the details for each of these interfaces.

## New Global Scope Method Wizard

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-a2a01f17d205751f8a3223ee73ffa7e5a73fe6a5%2Fnew-method-scope.jpg?alt=media" alt=""><figcaption><p>New Global Scope Method</p></figcaption></figure>

The **New Global Scope Method** wizard is used to create methods in a global scope, which can be accessed throughout the application. Here are the sections of this wizard:

### Method Name Input Field

A text field where the user specifies the name of the new global method.

### Buttons

Here are the available buttons:

#### Create

Finalizes the creation of the new global method with the specified name.

#### Cancel

Cancels the method creation process and closes the wizard.

## New Form Method Wizard

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-4d274c67f770139d23e2eca1561ca79ea68187a0%2Fnew-method-form.jpg?alt=media" alt=""><figcaption><p>New Form Method</p></figcaption></figure>

The **New Form Method** wizard is used to create methods specifically within a form. This interface allows the user to specify the name of the new method and set its access level.\
Here are the sections of this wizard:

### Method Name Input Field

A text field where the user specifies the name of the new method.

### Access Level Buttons

#### Create Public

Creates a method with public access, making it accessible from anywhere within the application.

#### Create Private

Creates a method with private access, restricting its visibility to the form it belongs to.

#### Create Protected

Creates a method with protected access, allowing visibility to subclasses or classes in the same package.

### Buttons

Here are the available buttons:

#### Cancel

Cancels the method creation process and closes the wizard.
