1
0
-1

Hi, 

I need to build a button that normal users will click to create a record in another form using javascript

This button will appear on a jqueryui popup. I have tried the JSON API, but it needs the user to have the admin role and I have to provide the password in the javascript.

Is there an example of how I can achieve this with Javascript API?

Thanks.

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Anders,

      Hows it going? Maybe this picture will help me explain better. I want to select the Product quantity and click add in the dialog. After clicking Add, the product items should appear in the list of items in another tab. Is this possible?

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

        Hi, you could try submitting the other form using javascript to simulate the click, for example https://stackoverflow.com/questions/9855656/how-to-submit-a-form-using-javascript 

          CommentAdd your comment...