Is there a way to call Python function from js?

IMO This is a good example, it uses jqueries builtin ajax/xmlhttprequest capabilities $.post() to call a browserview called @@render_from_markdown.

In my suggested example render_from_markdown would be replaced with some browserview associated with 'getImportfields'. Then just make the code do what you need it to do.

1 Like