In your anvil.server.call()
you are passing a parameter called self.names
, ie you are sending that to the server function from the form.
It doesn’t exist in the form, hence the error.
If you manually define self.names
somewhere in your form code before you make the server call, the error will go away which will prove the point.
Can you please explain what you are trying to achieve? That might help me to help you better.