How is there an unexpected argument in this submit code

I was trying to broadcast a notification on click event.

Wrote the code and values on submit but said it had an unexpected argument suddenly but it used to work perfectly before.

Code Sample:

  anvil.server.call('submit' , email = email, hobby = hobby)
    Notification("your response has been recorded").show() 

There’s no way for any of us to know without seeing the function definition.

2 Likes

There is an indent before Notification() in your sample code, I am not sure if that is just what you typed into the forum or if it is in your actual anvil code causing an error.
That should actually be an IndentationError, though it is possible that is not implemented in skulpt.

1 Like