1
0
-1

Hi,

I'm trying to use FormBuilderPaletteElement interface to create a button able to launch a plugin.

I don't need a submit button. I need to stay on the form.

Could someone give me an example? There is no documentation for that..

In particular:

Where to put the code to execute on button click?

How to change the label button?

 

Thanks,

Olivier

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi, I need a server-side action because I need to call an existing plugin without exiting the form

      1. Anders

        If you need some server-side action without submitting the form, then you would need to use something like an AJAX call using client-side JavaScript to a server-side API. For the server-side you could have own your custom web service or build a https://dev.joget.org/community/display/KBv6/Web+Service+Plugin

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Hi, if you do not need a button to perform any submission or server-side action then it would be easier to just add a button with an onclick event in a Custom HTML element, instead of creating a custom plugin.

        CommentAdd your comment...