This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I create a clickable popup-window in transition?

Hi there,

I'm using SBM 12.1 for a few month now. My customer asked me to show in a transition form a button(like cancel and delete). If this button would be clicked, a popup should appear, with a text like "do you really want to cancel, all fields are deleted". In this popup there should be to new clickable buttons "yes, cancel an delete", "no, don't delete". I know, how to create popups in composer, but not creating clickable buttons within these popups?

I'm not so good in javascript or html, are there any possibilities in composer to do so?

Thanks.

Parents
  • 0  

    Without JavaScript knowledge that will be tough. You could search online about creating dialogs with jQuery and try to leverage that as SBM includes jQuery by default.

    You could use the confirm dialog as a workaround, but the default buttons are "Yes" and "Cancel", which means changing your question around. 

    You would  create a form action that is triggered on button click, then in the IF choose "execute Javascript" and enter:
    confirm("Do you really want to delete date in fields? ")

    For the Then, do the action that clears the fields.

    For the custom dialog, it's a bit more complicated.

Reply
  • 0  

    Without JavaScript knowledge that will be tough. You could search online about creating dialogs with jQuery and try to leverage that as SBM includes jQuery by default.

    You could use the confirm dialog as a workaround, but the default buttons are "Yes" and "Cancel", which means changing your question around. 

    You would  create a form action that is triggered on button click, then in the IF choose "execute Javascript" and enter:
    confirm("Do you really want to delete date in fields? ")

    For the Then, do the action that clears the fields.

    For the custom dialog, it's a bit more complicated.

Children
No Data