---
title: "Disable PDF form editing on Android | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/android/forms/create-edit-and-remove/disable-editing/"
md_url: "https://www.nutrient.io/guides/android/forms/create-edit-and-remove/disable-editing.md"
last_updated: "2026-05-30T02:20:01.157Z"
description: "You can disable the modification of a specific form field by using setFlags with the READONLY flag, like so: for Nutrient Android SDK."
---

# Disable PDF form editing on Android

You can disable the modification of a specific form field by using [`setFlags`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations/-annotation/set-flags.html) with the `READONLY` flag, like so:

### KOTLIN

```kotlin

// Make the annotation read-only.
annotation.setFlags(EnumSet.of(AnnotationFlags.READONLY))

```

### JAVA

```java

// Make the annotation read-only.
annotation.setFlags(EnumSet.of(AnnotationFlags.READONLY));

```

For more information, see the [annotation flags](https://www.nutrient.io/guides/ios/annotations/annotation-flags.md) guide.

## Disabling all form interactions

You can disable all form interactions and modifications using [`formEditingEnabled(false)`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.configuration/-pdf-configuration/-builder/form-editing-enabled.html):

### KOTLIN

```kotlin

val builder = PdfActivityConfiguration.Builder(context)
builder.formEditingEnabled(false)

```

### JAVA

```java

PdfActivityConfiguration.Builder builder = new PdfActivityConfiguration.Builder(context);
builder.formEditingEnabled(false);

```
---

## Related pages

- [PDF form field flags on Android](/guides/android/forms/create-edit-and-remove/form-field-flags.md)
- [Effortlessly add signature fields to PDF forms](/guides/android/forms/create-edit-and-remove/add-signature-field.md)
- [Create fillable PDF forms on Android](/guides/android/forms/form-creation.md)

