# invokerFields

> Why JS: a dialog or popover opened by an invoker button cannot read that button's value.

```ts
import { invokerFields } from "@sdxc/ui/mixins";
```

Presets the fields of the dialog or popover around the host from the button that opens it: an
invoker carrying `name` and `value` sets the target's field of that name to that value. Once
the target closes, each preset field returns to the value it held before, so the next opener
starts where the form was.

## Signature

```ts
invokerFields(): MixinDescriptor<HTMLElement>
```

## Examples

```tsx
<button commandfor="new-issue" command="show-modal" name="status" value="done">+</button>
```

```tsx
<span hidden mix={[invokerFields()]} />
```
