# 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="/files/RKrMEqTD4SbQO8ZuoFQi" 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="/files/N4OlPORlaliGn8Reeg6D" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoy-developer/object-editors/new-method-wizard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
