---
description: This section contains the necessary methods to submit the form.
---

# Submit form

```java
BiometridOn.getInstance().submitForm(String process_token, FormBuilder builder, Context context);
```

This method will submit a FormBuilder to the BiometridOn API. This object should contain all the required information from the current step (StepType.Form).

## Callback params

| submitForm Callback | Callback                     |
| ------------------- | ---------------------------- |
| Boolean status      | Status of request            |
| StepType previous   | Previous step                |
| StepType next       | Next step                    |
| JsonObject json     | JsonObject data from request |
| Errors e            | Errors object                |

## Implementation example

```java
public class ExampleActivity extends Activity implements OnProcessCallback {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_example);

        FormBuilder builder  = new FormBuilder();
        builder.add("client_firstname", "Android");
        builder.add("client_lastname", "Forever");        

        BiometridOn.getInstance().getCurrentStep("PROCESS_ID", builder, this); 
    }

    @Override
    public void onDataSubmissionCallback(Boolean status, StepType previous, StepType next, JsonObject json, Errors e) {

    }

    ...
}
```
