# MentorFormOptions class

> The MentorFormOptions class of Novior.MentorAgent.Abstractions.Interfaces: How MentorFormExtensions.RegisterForm reads a form. A field is named by its…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/mentorformoptions
- Verified with: MentorAgent 1.5.0
- Last updated: 2026-11-26
- Packages: Novior.MentorAgent.Abstractions

How [`MentorFormExtensions.RegisterForm`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/mentorformextensions#registerform) reads a form. A field is named by its property, as written in the model (`nameof(Order.CustomerName)`) or as the model sees it (`customerName`); a name that is no field of the form throws when the form is registered.

## Definition

Namespace: `Novior.MentorAgent.Abstractions.Interfaces`. Package: `Novior.MentorAgent.Abstractions`.

`public sealed class MentorFormOptions`

```shell
dotnet add package Novior.MentorAgent.Abstractions
```

## Constructors

`public MentorFormOptions()`

## Methods

### `Exclude`

`public MentorFormOptions Exclude(params string[] fields)`

Leaves these fields out: the model is not told of them and cannot fill them.

### `IncludeSensitive`

`public MentorFormOptions IncludeSensitive(params string[] fields)`

Lets in these sensitive fields, which a form leaves out unless they are named here: the model can then fill them, and the page's field is written even when it is a password field. What the model writes there it has seen, and so has its provider: name only what the user may say to the assistant.

### `Selector`

`public MentorFormOptions Selector(string field, string selector)`

The CSS selector of a field in the page, in place of its `data-mentor-id`.

---

- Previous: [MentorFormExtensions class](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/mentorformextensions.md)
- Next: [MentorGridExtensions class](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/mentorgridextensions.md)
