I’d like to have a select menu in ACF with two different pop-ups for a button.
Example:
Book a demo
Get a proposal
When 1 is selected in ACF, after clicking the button it should display the “Book a demo” pop-up, but when 2 is selected, clicking the button should trigger the pop-up template “Get a proposal”.
I’d just create two buttons with their own interaction and show / hide them conditionally. In the conditions you can just check for the ACF field’s value.
Thank you for your reply, André, but unfortunately, I have more than 2 options for the popup. So adding 6 different buttons for every button doesn’t seem like a good option.
If it were possible to dynamically assign classes or something similar, it would be best.