Publishing a form

A form can be filled out once created. You can publish your form using a direct link, embed it in a website, or share a link to the form on social media. If you're using Yandex Forms for business, you can post the form on Wiki or integrate it into Tracker.

When publishing a form, you can set restrictions by date or the total number of responses or only allow employees of Yandex 360 for Business to fill out the form.

You can make changes to the form and its settings even after publication.

To get a link to a form:

  1. Open the form and click Publish above the list of questions.

  2. In the Share this form pop-up window, select the link or iframe code, then click to the right.

    You can reopen this window later by clicking next to Publish.

  3. Send the link to users or post it on public resources.

If you want to use English for standard Yandex Forms messages — like warnings about invalid inputs — change the domain from .ru to .com in the link.

To distribute private links to your form, for example, among your promo participants, generate keysets with unique links. A user can fill out a form using a link from the keyset only once.

The generated keysets allow distributing forms before they are published. If you click Publish in the form builder, the generated keysets will stop working as unique links: if you follow them, you can fill out the form multiple times.

To generate the keys:

  1. Select a form and go to SettingsPersonal links.
  2. Click Generate keys.
  3. Enter the name for the keyset and the number of keys.
  4. Click Generate: the new keyset will show up in the list.

Links to the form are stored in the keyset's XLS file. To get links to your form, export this file and copy links from it.

To deactivate unused keys, click Disable. The link will change its status to Inactive.

Publishing on a website

To publish a form on your website:

  1. Select the form and click Publish above the list of questions.

  2. In the Share this form pop-up window, select the link or iframe code, then click to the right.

    You can reopen this window later by clicking next to Publish.

  3. Copy the form code from the Iframe embed code field.

  4. Paste it into the HTML code of the page where you want to put the form.

  5. Include additional form display parameters in your code if needed.

To only publish your form in an iframe, set up a restriction:

  1. Go to SettingsAdditional.

  2. Select Allow publishing in iframe only. In this case, you won't be able to share the form via a direct link.

If your site or service uses a Content Security Policy with restrictions on embedding sites in iframes, add the forms.yandex.ru and cloud.yandex.ru domains to the frame-src directive to ensure your forms function correctly within iframes.

In your site or service settings, add the following string:

Content-Security-Policy: frame-src https://forms.yandex.ru https://cloud.yandex.ru;

Additional parameters

You can configure the rules for displaying the form on the website:

  • To set the size, change the width parameter value. You can use percentages or pixels to set the size.
    For example, if you want the form to fit the page width, specify width="100%".

  • To adjust the form's height, add the height parameter to the form code. You can specify the value in percentages or pixels.

  • To add a border around the form, change the value of the frameborder parameter to frameborder=1.

  • To set a theme for the form, add an ampersand (&) and either a theme or _theme query parameter with one of the following values to the form URL after the iframe=1 parameter:

    • theme=light: Light theme.
    • theme=dark: Dark theme.
    • theme=dark-hc: Dark theme with high contrast.
    • theme=light-hc: Light theme with high contrast.

Sample form code:

<iframe src="https://forms.yandex.com/1234/?iframe=1&theme=dark" frameborder="1" width="650" height="800"></iframe>

Publishing the form on Wiki

Only users of Yandex Forms for Business can work with Wiki.

To publish a form on a Wiki page:

  1. Select the form and click Publish above the list of questions.

  2. In the Share this form pop-up window, select the link or iframe code, then click to the right.

    You can reopen this window later by clicking next to Publish.

  3. Paste the link into Wiki page text as follows:

    {% forms src="<link_to_form>" %}
    

Adding the form to Tracker

You can set up a form to create issues and embed it into the Yandex Tracker interface. This form will be displayed on the issue creation page next to the standard one. It will help users create issues based on a certain template without being distracted by unnecessary fields and parameters. For more information about forms in Yandex Tracker, see the Yandex Tracker documentation.

Unpublishing the form

To stop accepting responses and unpublish the form:

  1. Select the form and click Published above the list of questions.

  2. Click Unpublish.