Add Submit button on Orbeon Form Runner and then call custom Java REST API on submission

StackOverflow https://stackoverflow.com/questions/16022307

  •  04-04-2022
  •  | 
  •  

سؤال

I am working on a POC (proof of concept) where I am evaluating Orbeon form builder/runner. I am using community edition, just in case, I will need to change the code, else the Professional Edition would do for POC.

I am integrating FormRunner with my web application running on different web server, which will call the FormRunner URL with some custom query parameters.

I want to remove the Summary, PDF and Review buttons from FormRunner and simply want the save button to function as submit button, so as clicking on it will submit the POST data to my custom Java code which will talk back to my web application, likely through REST API. The submit button then should redirect me to another page saying 'Your data has been submitted'.

I find it difficult to understand the area where I can change the code for expected behavior. Could you provide me some pointers in this regards please?

Thanks and Regards, Mayuresh.

هل كانت مفيدة؟

المحلول

You shouldn't have to change the code for this, but instead use the oxf.fr.detail.buttons.*.* property to define which buttons are shown. Based on your description, you only need the workflow-send button, which, amongst other things can POST the form data to a service you specify.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top