Originally posted by **Jack-Dark** October 3, 2026
`replaceValue` used to be available from `` in v1, but it is not available in `` in v2, forcing you to use `field.insertValue`, then `field.removeValue` to get the same functionality. This is an unneeded regression from v1.
Example:
< form.AppField mode="array" name="arrayFieldName">
{({ replaceValue }) => {
return (
<div onClick={() => {
replaceValue(...);
}}>
// ...
</div>
);
}}
</form.ArrayField>
<form.ArrayField name="arrayFieldName">
{({ insertValue, removeValue }) => {
const replaceValue = (index, data) => {
removeValue(index);
insertValue(index, data);
}
return (
<div onClick={() => {
replaceValue(...);
}}>
</div>
);
}}
</form.ArrayField>
```</div>
Nevermind.
field.replaceValueis not the same semantics.