Notification not working

What I’m trying to do:
I have a form inside my UI. Whenever a user click submits, I want to show Notification stating success or failure.

What I’ve tried and what’s not working:
The form has a “submit” button, whenever it is clicked, a function is called. The function (for now) should only shows the success Notification which isn’t working. However, when I “show” notification in the init def, the Notification works

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 
def submit_btn_click(self, **event_args):
    Notification("Great", style="success", timeout=3).show()

The above code gives me error:
Externalerror: TypeError: $.notify is not a function

Please help

Hi @wilsy101 and welcome to the forum,

Thanks for the code snippet.
In a minimal example I’m not able to reproduce the issue.

Are you able to provide a minimal example clone link that demonstrates the issue?

1 Like

Hi, I tried to replicate the issue in a new example project but even I couldn’t replicate the issue. I could see the Notifications.
I realised I was working on a cloned project and the creator had added some scripts in their “standard.html” (See Image). I deleted them and ran the project again and now it works just fine.

Thank you for replying to my query and giving me a new perspective. Appreciated

2 Likes