> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowforma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed a form into a page

> Embed a FlowForma form in a web page with a newform.aspx link, and use URL parameters to control dialog launch, close on submit, and pass values into questions.

In FlowForma you have the ability to embed a form into an internet page.

**This is an example of a link that will launch a new form**

[https://trial.flowforma.com/sites/test/lists/forms/newform.aspx?FlowId=3](https://trial.flowforma.com/sites/test/lists/forms/newform.aspx?FlowId=3)

The link structure is composed of

* The URL for the Forms list on the site
* A reference to the newform.aspx page
* A parameter for the ID of the flow you want to use for the form

The **ID** of the flow you want to use can be found on the **flows list** by modifying the view and showing the "ID" column.

## Control how the form launches

You can use additional parameters in the URL to control how the form launches.

**\&IsDlg=1** launches the form in a Dialog.

**\&CloseOnSubmit=1** causes the form to close when the user presses the **submit button.**

**\&src=[http://www.flowforma.com](http://www.flowforma.com)** causes the form to return to [http://www.flowforma.com](http://www.flowforma.com/) when you close the form. This can also be used to direct the form to return to an **intranet page** by submitting the intranet URL in place of [www.flowforma.com](http://www.flowforma.com/).

## Opening existing forms

You can also open existing forms using URLs. To do this you must know the **ID** of the form you want to open. You can find this on the **forms list.**

Then in place of **newform.aspx** you need to use **dispform.aspx?id=\<formID>**.

**e.g.** dispform.aspx?id=24 opens form 24.

**Passing values from the URL into the form**

You can read query parameters from the URL into the form that you open using the Set Question Value business rule using a "**Loaded Event**".

The "Loaded Event" causes the business rule to fire as the form is render on the screen, before any other activity, this will allow you to populate questions with the query parameter values.

You can then put **questions changed rules** on those questions too. For example, **show and hide** steps prior to the user entering any data.
