---
title: "Create a photo contest form"
manual: "Form"
version: "14.3"
permalink: "https://docs.typo3.org/permalink/typo3/cms-form:editors-photocontest@14.3"
source: "E/Tutorials/PhotoContest/Index.rst"
rendered: "2026-09-19T11:59:02+00:00"
---

# Create a photo contest form {#editors-photocontest}

In this tutorial, you will learn how to create a photo contest with the form framework.

Let's define what we need:

-   contact information from our visitors: name and email address
-   a photo upload for our visitors
-   an email to us with the participation
-   terms and conditions for our contest
-   a thank you page after submitting the form

Let's get started:

1.  Create a new form

    Go to the `Forms` module and create a new form by clicking on "Create new form".

    ![The form module - click the button](Images/1_createForm.png)
1.  Choose a name

    Choose a name for your form - something you will recognize later on - and click "Next"

    ![The form creation wizard - step 1](Images/2_wizard_1.png)
1.  Click "Next"

    As we are creating a basic form, step 2 will be automatically done and we directly see step 3. Click "Next" again.

    ![The form creation wizard - step 3](Images/2_wizard_2.png)
1.  Create new element

    You will now see the form editor view for your new form. Click on "Create new element" to add a field to your form. The first field we want to create is the "Name". Choose "Text" from "Basic Elements" to create a simple text field for the first name.

    ![Create New Element Button](Images/3_createElement_1.png)
1.  Set options for "Name"

    After selecting the "Text" type, we get new options in the inspector panel:

    ![Fields for a simple text field](Images/3_createElement_2.png)

    1.  Label: Enter a label for your field - in this case "Name".
    1.  Placeholder: Enter an example value for the field - this will be used as placeholder in the frontend.
    1.  Add a validator "Non-XML text" to only allow simple text input.
1.  Create image upload field

    Similar to the previous field, add an image upload field. Choose type `Image Upload`.

    ![Create Image Upload](Images/4_createImageUpload_1.png)
1.  Configure image upload field

    Set options for the image upload - for example choose specific image formats or enter a max file size.

    ![Configure Image Upload](Images/4_createImageUpload_2.png)
1.  Create "Terms and Conditions"

    To display terms and conditions for our contest, we want to add a simple static text to the form. Choose "Static Text" from the available element types.

    ![The static text type](Images/5_createStaticText_1.png)
1.  Enter "Terms and Conditions"

    Fill the text box with the terms and conditions for your contest.

    ![Set options for Static Text](Images/5_createStaticText_2.png)
1.  Change the headline and buttons

    We want to have a nice headline for the form and the next button should read "Summary". To do that, click on "Step" (1) in the form tree and set the fields (2,3) on the right. You don't need to change the previous label, as we are on the first page and there is no previous in this case.

    ![Set options for step](Images/6_setOptionsForStep.png)
1.  Create a summary page

    We want to create a summary page where the user can confirm his or her data again. Click on "Create new step" on the left to create a new page/step in the form.

    ![Create new step](Images/7_createSummary_1.png)

    ![Create new step - choose summary](Images/7_createSummary_2.png)

    ![Create new step - configure summary](Images/7_createSummary_3.png)
1.  Preview the form

    Click on the preview button to preview the form.

    ![Preview the form](Images/8_preview.png)

    Oh no! We forgot to create the email field. Let's do that next.
1.  Add an email field

    Go back to editing the form (1) and click on "Create new element" (2).

    ![Switch to editing and Create new element](Images/9_missingEmail_1.png)

    ![Choose "email address"](Images/9_missingEmail_2.png)

    ![Configure the email address field](Images/9_missingEmail_3.png)

    ![Move the email address field](Images/9_missingEmail_4.png)
1.  Save the form

    Your form is now fully configured and ready to be inserted on pages.

    ![Save the form](Images/10_saveTheForm.png)

    You can save the form and do another review - now it looks fine. Let's go and insert it on a page.
1.  Choose a page for your form

    The form you configured can now be inserted on any page you want. Go to the page module and choose one.

    ![Select a page for your form](Images/11_selectPage.png)

    1.  Go to the page module.
    1.  Choose a page in the page tree (for example: "Contest").
    1.  Click on `+ Content` to create a new content element.
1.  Insert Plugin

    From the content element wizard, choose "Form" (in "Form elements" tab).

    ![Choose form as type](Images/12_chooseForm.png)
1.  Choose your form definition

    In the plugin tab, choose the form definition you just created. You can also use the "normal" TYPO3 fields like header to render a headline for your form.

    ![Choose the form definition](Images/13_chooseFormDefinition.png)

    Having a separate form definition allows you to insert the form on many pages, customizing for example the headline in each case.
1.  Save the content element

    Save the content element and go and view your web page. You can now see your finished form.

    ![The finished form - Step 1](Images/14_frontend_1.png)

    ![The finished form - Step 2](Images/14_frontend_2.png)

    When testing your form, you might notice that it doesn't do anything yet when we fill it. That's bad. Let's change that.
1.  Add email finisher

    Everytime someone fills the form we want to receive an email with the contest picture. Let's add an email finisher for that:

    ![Add email finisher](Images/15_addEmail.png)
1.  Add redirect to "Thank You" page

    After submitting the form we want to redirect the user to a thank you page. There's a ready-made finisher for that, too - the "Redirect to a page" finisher:

    ![Redirect Finisher Options](Images/16_addRedirect_1.png)

    Choose "Redirect to a page" from the finisher menu. Click on the "Page" button to open the page browser.

    ![Page browser of redirect finisher.](Images/16_addRedirect_2.png)

    Choose your thank you page.

    > [!WARNING]
    > **Attention**
    >
    > Make sure that the redirect finisher is the last finisher - after the redirect no other finishers will be executed.
1.  Test again - Enjoy!

    Save the form and reload the frontend. Now you can test the form again. After submitting you will now be redirected to the thank you page.

    ![Thank you page.](Images/17_thankYouPage.png)
