Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6396 Lượt xem

Is it possible to have a popup window on the website whenever a visitor presses a button?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

In Odoo 16.4 There is a new display option available with the pop-up block called “On Click (via link)”

Once this option is enabled there will be a message on the top right corner which gives an anchor for the pop-up, with an option to edit it.

Press the edit button quickly as this lasts only for a few seconds. If you missed it, change the Display option to something else and and again switch it back to On Click.

Once the Edit Option is selected it is going to open up a dialog box where the anchor for the pop-up can be edited.

Change the Anchor Name and Press “Save and Copy” Button.

 Once the Anchor is copied. You can now create a button by typing “/button”


In the Button dialog box type in the Label for the button and paste the Page anchor for the Pop-up with a “#” in front of it. and save changes.

When you press this button, it will open the pop-up window.

Note:

This feature also works with the Newsletter Pop-Up Block.

 


Ảnh đại diện
Huỷ bỏ

Hey! Thanks for this. It works superb.
However, do you have a clue how to get this working across all pages? I have the link in the header, so it would be nice if the popup would be visible on all pages.

Sorry i was to quick! Found the solution :)

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 24
1102
1
thg 10 24
3932
2
thg 4 25
1591
2
thg 11 24
1503
2
thg 10 24
2057