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

Hi, everyone. 

I'm looking for a solution that can register a checkbox action. I want to store when someone clicks on a checkbox and send that stored value by e-mail. Anyone has any idea how can I do this? Thanks :)

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

This problem should be solved using a combination of a controller and js code. 

1: Create a mail template (if needed)

2: Create a controller endpoint. In this endpoint you want to retrieve the checkbox value and trigger the email template you created earlier.
(docs: https://www.odoo.com/documentation/14.0/developer/reference/addons/http.html)

3: Add JavaScript to your checkbox/form to send the value to the endpoint you have created
(docs: https://www.odoo.com/documentation/14.0/developer/reference/javascript/javascript_reference.html)

For anything more specific it would be required to see actual code

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
GDPR checkbox for landing page แก้ไขแล้ว
2
ธ.ค. 23
1498
5
พ.ค. 16
11014
4
พ.ค. 15
5291
1
มิ.ย. 24
1604
1
เม.ย. 24
1632