Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This will embed the form instance in your page inside an <iframe/>. 

How do I get the url to return the form instance embededr java script?

First get a hold of the corresponding FormTypeEntry and then get the url as shown in the snippet below:

Code Block
FormTypeEntry formType = ...; // find the correct formtype entry

NameValueCollection nvc = new NameValueCollection();
nvc.Add("_data", "{TextArea3:TestTestTest}");

Uri formInstanceEmbedUri = formType.CreateFormInstanceEmbed(nvc, null);

String formInstanceUrl = formInstanceEmbedUri.AbsoluteUri;

Then using the formInstanceUrl above you can generate the following script tag in your html page:

Code Block
  <script type="text/javascript"  
  src="{formInstanceUrl}"></script> 

This will embed the form instance in your page inside an <iframe/>. 

Note
  • The method FormTypeEntry.CreateFormInstanceEmbed(NameValueCollection, params MediaSource[]) is only available in .Net Client API version 5.1 Patch 3 and later.
  • See this documentation for more information about available URL parameters.

 


How do I get a form entry based on a known id?

This is often needed when you need to relate a  form with another concept your application (e.g. you application has the concept of a report that has an associated  form). In this case you will store the form id somewhere and when needed fetch the form entry to embed it in your page, delete it, etc.
Here is how you get the for a form entry (in fact any entry):

...