Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5908 มุมมอง

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

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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.

 


อวตาร
ละทิ้ง

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 :)

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to add 2 buttons on pop-up แก้ไขแล้ว
1
มี.ค. 24
939
1
ต.ค. 24
3647
2
เม.ย. 25
1268
2
พ.ย. 24
1275
2
ต.ค. 24
1807