...
If you do not require access control or authentication for other purposes, i.e. your forms are public forms on your Extranet, you can simply use built-in Share Dialog and copy and paste the code into your HTML, JSP, ASP, PHP or other web page. An example is ' own contact form. No authentication is required and the form is completed and submitted anonymously. You can find instructions for embedding forms and flows workflows here.
Integrating authentication with your web application (using the API)
...
Info |
---|
Make sure you have read and understood the documentation on making forms and flows workflows public. |
Now that you have logged in, you must use the FormsService created above to get an embed URL for the form/flow workflow that you want to embed.
Code Block |
---|
FormTypeEntry ftEntry = (FormTypeEntry) service.getEntry( service.getEntryURL(FormTypeEntry.class, "_iAMawOa4Ed-TkpzYF5hpcQ!_MOrvYeV9Ed-6Ft_YAwCXMQ!designer"), FormTypeEntry.class); String formUrl = ftEntry.getFormTypeEmbedLink(null).getHref(); |
...
- formTypeId is the ID of the form/flowworkflow.
- applicatioinId is the ID of the frevvo application containing the form/flowworkflow.
- ownerId is the ID of the designer user who owns the form/flowworkflow.
You can find the IDs using the Share dialog for the form or flow workflow in question. In the Figure below, the Share URL contains:
...
Code Block |
---|
<script src="<%= formUrl %>" type="text/javascript" language="Javascript"></script> |
Finding an existing saved form/
...
workflow
Info |
---|
Make sure you have read and understood the documentation on saving partially completed forms or flowsworkflows. |
If your user has a saved form/flowworkflow, you can find it and render the saved form/flow workflow instead of creating a new one as described above.
...