Umbrella: Easy embedding of forms #1235
Open
Comments
On embedding from the server:
On embedding from the client:
A note on style: we are already reasonably sandboxed as we use the We should do create clear embedding scenarios to make it clear what is covered. For example:
|
+1 form customer for the server-side part. |
First phase:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related bugs
What is already supported
We want to make it easy to embed Form Runner forms within another application. Right now, we support:
Approaches
In addition, we could provide the capability for forms to be included into existing pages:
Embedding from the server [IMPLEMENTED]
To get this right, we need:
<div>
to embed in the page.JSESSSIONID
saved in the session, we send it to Orbeon Forms.JSESSSIONID
is set in the response, we save it in the session.JSESSSIONID
with the one saved in the session.submission replace="all"
, we could support just embedding the result. (If users want the whole page to be replaced, then they can use anxf:load
.)For the Java platform, this could be implemented with a filter:
<fr:form uri="app/form/new">
.submission replace="all"
, proxy the submission, get result, run the app, and replace the<fr:form>
with the result from the submission.Embedding from the client
To get this right, we need:
<div>
is replaced (JS and CSS must be handled properly too).From an API perspective, ideally it should just be a small JavaScript library. Maybe even no library at all for the initial load of the content. But you could imagine a JS API being helpful to do things such as "load such and such form now". In the "future future" Web components might help us do with this in a really clean way.
The main requirement is for this to work with Form Runner. We don't really have a need for this to work with generic XForms. But if that works too, that is obviously fine. Also, embedding Form Builder is not a requirement.
The text was updated successfully, but these errors were encountered: