Skip to content
ZOLO / TE776 Type · error

typed form field does not match an action parameter

A static control name in a typed action form does not match a parameter of its @action, or uses the reserved __zolo_return_to name. Use a declared parameter name; the editor offers a rename for close matches.

The static name of a control inside a typed action form must match a parameter of its @action function. Zolo checks input, select, textarea, and button.

@action
fn salvar(idade: int) -> str { return "ok" }

<form action={salvar}>
    <input name="iadde" /> // TE776: use name="idade"
</form>

The editor offers a rename when a close parameter name exists. This edit changes only the string content. Dynamic names and controls generated by components are not assumed to have statically known names. A nested form has its own contract.

__zolo_return_to is reserved for the hidden field generated from return_to. Rename an authored control that uses this name.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

enespt-br