You are viewing limited content. For full access, please sign in.

Question

Question

Submit LF form without leaving the forms page or start the process from JavaScript

asked on November 25, 2020

Hi,

I am currently working on a preview system that previews an invoice created from workflows before leaving the forms page. The issue I am having is that I can't see a way to run my process from the form without getting sent to the forms submitted page. Is there a way to fire off the submit request without leaving the forms page or is there a way to start the process via JavaScript?

Thanks,

Aaron M

0 0

Replies

replied on November 25, 2020
0 0
replied on November 26, 2020

While that does seem correct, I have been trying to send data via ajax to the server with no result other than http 400 errors and http 500 errors. Upon rereading that help section it seems that it is more suited for filling out the form from another source rather than sending data to the server or starting the process. sad

Although it may be possible to start the process via ajax I can't figure out what the server wants me to send it for it to be happy and run. If I could get confirmation on what needs to be sent to the server and in what form that would help.

EX. does the server require every field on the form to have an object in JSON? even if it is empty? and what type of data does the server want? a string? a JSON object? XML?

0 0
replied on November 26, 2020

Actually the help page I provided is for using http post to populate fields on the form, it will not be able to submit the form. It is similar as you populate the fields values by passing them in the URL.  The use case is you can populate fields for another form embed in current form using JavaScript. 

0 0
replied on November 26, 2020

Hi Aaron, I'm from the Atlantic Bubble as well. Drop me an email at Steve.Knowlton@ricoh.ca. Would like to connect with you more about what you are looking to do.

You are not allowed to follow up in this post.

Sign in to reply to this post.