ssossossossosso

Forums

Forums OroPlatform OroPlatform – How do I? Questions Add button with confirmation message

This topic contains 4 replies, has 2 voices, and was last updated by  jneto 1 year, 1 month ago.

  • Creator
    Topic
  • #30749

    jneto
    Participant

    Can I add a button with a confirmation message like the delete button without using JavaScript ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #30750

    Mike Kudelya
    Moderator

    Hi

    Are we talking about these grid buttons ? If no, please show me your button.

    #30751

    jneto
    Participant

    In the view.html.twig of my entity, i need to use the UI.button and/or UI.dropdownItem

    but i need to send a confirmation message, in case the user click the button by mistake.

    Thanks

    #30752

    Mike Kudelya
    Moderator

    Hi

    Here is my example, if you want, you can make it better:

    Add this IF to the end of link macros:

    #30753

    jneto
    Participant

    Thanks. I will try it.

    My idea was not using custom JavaScript. I read the actionbundle documentation and I was hoping that the confirmation message could be achieved with configuration of the ui button macro call.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.