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.
Welcome to the Q&A Forum!
Help each other by asking questions about Anvil, and answering other people’s.
Post each question as a new topic - and if someone helps you, don’t forget to say thank-you. Try to provide information to help people answer your questions:
Be specific about what you’re trying to do.
Be specific about what your problem is (eg what’s not working), and what you have already tried.
Include code samples if you can.
It often helps if you can share your app’s source code and …
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