How do i pass a variable from a html form to the main page?

Here’s an updated clone

I set an id on the form so we can use this id for anvil.call. You weren’t using a standard template so .content wasn’t a valid selector for your form.

I also fixed the call signature for update_status.

I’d consider rewriting the JavaScript functions as python code using anvil.js. But that’s a personal preference.

1 Like