[[structure-form-editing]]

=== Changing Content Entry Forms

[role="summary"]
How to edit a content entry form.

(((Content,editing entry form)))

==== Goal

Change the Recipe form to use a different widget to enter terms in the
Ingredients field.

==== Prerequisite knowledge

* <<structure-content-type>>
* <<structure-fields>>
* <<structure-taxonomy>>
* <<structure-widgets>>

==== Site prerequisites

The Recipe content type must exist, and it must have an Ingredients taxonomy
term reference field. See <<structure-content-type>> and
<<structure-taxonomy-setup>>.

==== Steps

. In the _Manage_ administrative menu, navigate to _Content_ > _Add content_ >
_Recipe_ (_node/add/recipe_) to look at the content entry form that is set up by
default. Notice how you have to enter ingredients one by one, instead of having
a more compact format.

. In the _Manage_ administrative menu, navigate to _Structure_ > _Content
types_ (_admin/structure/types_). Then click _Manage form display_  on the
dropdown button for the Recipe content type. The _Manage form display_ page
appears.

. For the Ingredients field, select _Autocomplete (Tags style)_ in the _Widget_
column.
+
--
// Manage form display page for Recipe, Ingredients field area, with
// Widget drop-down outlined.
image:images/structure-form-editing-manage-form.png["Manage the Recipe form",width="100%"]
--

. Click _Save_.

. In the _Manage_ administrative menu, navigate to _Content_ > _Add content_ >
Recipe (_node/add/recipe_) to verify the changed behavior of the content
form. The Ingredients field is now a single text field that accepts multiple
values.
+
--
// Create recipe page (node/add/recipe).
image:images/structure-form-editing-add-recipe.png["Add a recipe",width="100%"]
--

. Create two Recipe content items (see <<content-create>>), such as recipes for
"Green Salad" and "Fresh Carrots". Make sure all the fields have values,
including images, ingredients, and submitted by (set this to one of the Vendor
content items you created in <<structure-fields>>).

==== Expand your understanding

Change the main site Contact form by navigating in the _Manage_ administrative
menu to _Structure_ > _Contact forms_. For instance, you may want to hide the
_Send yourself a copy_ or _Language_ fields.

// ==== Related concepts

==== Videos

// Video from Drupalize.Me.
video::https://www.youtube-nocookie.com/embed/CELMGX93fjE[title="Changing Content Entry Forms"]

// ==== Additional resources


*Attributions*

Written by https://www.drupal.org/u/batigolix[Boris Doesborg].
