İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
10559 Görünümler

I want to show alert message by JavaScript file when click on a button, which is added in XML. I try a lot by different methods but didn't reached to any solution. So, anyone can solve this problem.
My XML Code is here.

Xml Code:

<button name = "name"  type="button" onclick="updatebtn" class="btn"/>
Avatar
Vazgeç
Üretici En İyi Yanıt

Hii Raaj,

It's working for form view in xml file, but i want that this alert message pop-up by javascript file when click on "My Button". Thanks for support.

Avatar
Vazgeç
En İyi Yanıt

HI Pawan, I am not sure about JS alert message for Odoo form view button,as we can provide JS alert for Odoo templates button, but you can use confirm attribute to you button to show any warning message,but it won't stop you to proceed further.

Syntax : <button name="button_name"  string="My Button"  type="object" confirm="Are you sure you want to Proceed?"/>

Avatar
Vazgeç
En İyi Yanıt

Hi! Have you found any solution?

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ağu 24
6279
1
Eki 22
24033
2
Eyl 21
12705
1
Ağu 21
8272
1
Tem 21
4296