Hello
I have a live view that has:
<%= f = form_for :action, "#", [phx_change: :action] %>
<%= select f, "#{id}", ["-", "Delete"], selected: "-", class: "action" %>
</form>
Is it possible to make a client side confirmation (e.g. window.confirm
), when client selects “Delete” value? Based on result from that confirmation, handle the phx_change
action or not (e.g. it will not be delivered if confirmation returned false) on the server side?