OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

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 3 years, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36402

    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
  • #36403
    Mike Kudelya
    Mike Kudelya
    Participant

    Hi

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

    #36404

    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

    #36405
    Mike Kudelya
    Mike Kudelya
    Participant

    Hi

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

    Add this IF to the end of link macros:

    #36406

    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)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No