Inline Forms For Sitecore 9

Sitecore 9 Inline Forms

I recently released new module to Sitecore 9. It allows to use Sitecore Forms directly in Rich Text Field.

You can download it from direct links, there are two packages available:

You can also install it from sources which are available on Github.

Inline Forms Module How-To

Authors have two options to insert the form, both work from Experience Editor and Content Editor:

  • Type in [form id="form-itemid"] tag:

You can find your form item IDs in Content Editor under /sitecore/Forms item

  • Pick a form from Rich Text Editor:

Tip: to display Sitecore 9 Form in your page, make sure that you have @Html.RenderFormStyles() and @Html.RenderFormScripts() in your MVC layout with @using Sitecore.ExperienceForms.Mvc.Html directive. if you are not familiar with Forms you can check my previous post.

Module is working with standard Sitecore MVC rendering and with Glass.Mapper. Forms used on pages with [form id="{form-itemId}"] tag are visible in Navigate->Links menu in Content Editor and “Used on the following pages” section in Forms app. If you don’t see it rebuild master link database.

The code is a little experimental, for sure I didn’t test all the cases, so report an issue if you find any. Pull requests are also welcomed.

In the source code repository you will find demo-website project, with the instruction how to install it.

References