0
Conditional dialog() button
Hello,
Is there a way to make the choices of a dialog() function conditional?
I would like to create a button that allows me to contact my customers via different channels: Phone call, SMS, WhatsApp and email.
For example, I would like the suggestion to contact by email not to be displayed if I do not have the email entered in the 'E-mail principal' field.
I tried with a simple code but choice #4 which corresponds to the email is displayed like this: #4
Thank you for your help
2 replies
-
Hello.
Your code may be fine. You just need to insert a filter (line 6) to filter out undefined values from the array before passing it to the dialog() function. Here's how to do it:Fabio
Content aside
- Status Answered
- 3 mths agoSun, December 29, 2024 at 10:56 AM UTCLast active
- 2Replies
- 42Views
-
2
Following