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

Salam, 

How can I make one button with 2 choices . When user click on the button the 2 choices appear then the user select one of them .?

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

When the button is clicked, call a wizard which displays two options in a dropdown. Based on the option selected, you can call the method defined in the main class (in .py file).

For reference you can check convert lead to opportunity related code, where you can find multiple options while converting.

อวตาร
ละทิ้ง
ผู้เขียน

Thank you for your solution. Is it possible with a solution like the "Actions" button that exists in the header of any form view and offers more than one action to the user?

คำตอบที่ดีที่สุด

Hi,

Return a wizard from the button, then you can display your choices inside the wizard and then user can select from it and continue.

Return wizard from button:https://www.youtube.com/watch?v=QpzBdLWEWsE

Thanks & Regards

อวตาร
ละทิ้ง
ผู้เขียน

Thank you for your solution. Is it possible with a solution like the "Actions" button that exists in the header of any form view and offers more than one action to the user?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 24
3286
1
เม.ย. 24
27044
1
พ.ย. 22
2695
2
ก.ค. 22
3440
0
ม.ค. 22
2386