Skip to content

Example: Vehicle check form

In this example we build an Araç Kontrol Formu (vehicle check form) that drivers who use company vehicles fill in every morning. The form has three pages: vehicle details, a checklist and a signature. If a fault is reported, a description and a photo are asked for, and after submission a different message is shown depending on the fault. The values to type are given at every step.

Before you start, you need permission to create and publish forms.

  1. Forms app → Form management → New form.
  2. Title: Araç Kontrol Formu
  3. Code: change the suggested code ARAC-KONTROL-FORMU to ARAC-KONTROL.
  4. Description: Sürücülerin her sabah, araca binmeden önce doldurduğu kontrol formu.
  5. Create and design.

The form opens in the designer with an empty page.

  1. At the top of the Properties panel, in Shows the properties of, choose Form.
  2. Navigation: Wizard.
  3. Progress indicator: Pages; Progress position: Above.
  4. Preview before sending: Answered only.
  5. Completion title: Teşekkürler; Completion message: Araç kontrolünüz kaydedildi. İyi yolculuklar.

Set the title of the page tab to Araç bilgileri. Then add the following elements in order.

Plate

  1. Toolbox → Input fields → Short text.
  2. Key: plaka; Label: Aracın plakası; Description: Boşluklarla yazın.
  3. Placeholder: 34 ABC 123
  4. Width: Half.
  5. In the toolbar, turn on Required.
  6. Validation → Add validator → Regular expression:
    • Pattern: ^[0-9]{2} [A-Z]{1,3} [0-9]{2,4}$
    • Error message: Plakayı 34 ABC 123 biçiminde yazın.
  7. Turn on Use in search (to find submissions by plate).

Check date

  1. Add a Date. Key: kontrol_tarihi; Label: Kontrol tarihi; Width: Half; Required.
  2. Logic → Default value: today()
  3. Maximum: today() (a future date cannot be picked).
  4. Turn on Use in search.

Mileage

  1. Add a Number. Key: km_sayaci; Label: Kilometre sayacı; Required.
  2. Format: Whole number; Unit: km; Minimum: 0.

Driver

  1. Add a Short text. Key: surucu; Label: Sürücünün adı soyadı; Required.
  1. In the page bar, click Add page and set the title to Kontrol listesi.

Check matrix

  1. Add Choice fields → Matrix. Key: kontroller; Label: Aşağıdakileri kontrol edin.

  2. Rows (Value, Label):

    Value Label
    farlar Farlar ve sinyaller
    silecekler Silecekler
    frenler Frenler
    lastikler Lastikler
    yag Motor yağı seviyesi
  3. Columns:

    Value Label
    uygun Uygun
    uygun_degil Uygun değil
  4. Turn on Every row required.

Fuel level

  1. Add a Slider. Key: yakit; Label: Yakıt seviyesi.
  2. Minimum: 0; Maximum: 100; Step: 25; Unit: %.
  3. Lowest label: Boş; Highest label: Dolu.

Is there a fault

  1. Add a Yes or no. Key: ariza_var; Label: Araçta arıza ya da hasar var mı?; Required.
  2. Appearance: Yes / No; “Yes” label: Var; “No” label: Yok.

Fault description

  1. Add a Long text. Key: ariza_aciklama; Label: Arızayı ya da hasarı tarif edin.
  2. Logic → Visible when: ariza_var == true
  3. Logic → Required when: ariza_var == true
  4. Turn on Show character counter; Maximum characters: 1000.

Damage photo

  1. Add Files → Photo. Key: hasar_foto; Label: Hasar ya da arıza fotoğrafı.
  2. Maximum files: 3.
  3. Visible when: ariza_var == true
  1. Add page, title Onay.
  2. Add Display → Text block. Content: Yukarıdaki bilgilerin doğru olduğunu ve aracı kontrol ettiğimi beyan ederim.
  3. Add Files → Signature. Key: imza; Label: Sürücü imzası; Required.

6. Completion message depending on the fault

Section titled “6. Completion message depending on the fault”
  1. Shows the properties of → Form → Conditional closing → add a row.
  2. Condition: ariza_var == true
  3. Title: Arıza bildirildi; message: Bildiriminiz kaydedildi. Araç bakım ekibi sizinle iletişime geçecek; aracı kullanmadan önce onay bekleyin.

If there is no fault, the general completion message is shown.

  1. Save. The toolbar says “Draft saved”.
  2. Switch to the Preview view. Device size: Phone.
  3. Try the following:
    • Type 34abc123 as the plate: a plate error should appear.
    • On the next page, choose Var for the fault question: the description and photo questions should appear, and the description should be required.
    • Choose Yok: the two questions should be hidden.
  4. The Result below the preview should say “It can be submitted as it stands.”
  1. In the Tests view, click New scenario; name: Arıza varsa açıklama zorunlu.
  2. Steps:
    1. Give an answer: plaka = 34 ABC 123, km_sayaci = 45210, surucu = Ayşe Yılmaz, ariza_var = Yes.
    2. It should be: ariza_aciklama required.
    3. Submit: it should be refused.
    4. Give an answer: ariza_aciklama = Sol ön far yanmıyor.
  3. Save the scenario and Run.

(Because the signature and the matrix are also required, answer them too if you want a “should be accepted” submission at the end of the scenario.)

  1. Get ready to publish. The Before publishing summary shows the 3 pages and the number of elements; there should be no errors.
  2. Release note: İlk sürüm.
  3. Publish. Result: “v1 is published”.
  1. Click Share.
  2. Under Employee groups, pick the Sürücüler group (or, under Units, locations, collar, pick Lojistik in Org units).
  3. Save.

Drivers see the form under My work → Forms → My forms; they can also fill it in from the mobile app.

  • Filter submissions by plate or date in Submissions and export them to Excel: Submissions, reports and notifications.
  • If you want an e-mail to go to the maintenance team when a fault is reported, set up a rule on the designer’s Notifications tab.
  • To have a faulty vehicle go through the maintenance manager’s approval, bind the form to an approval flow: Workflows.
  • To have drivers pick the plate from the company’s vehicle list instead of typing it: Data sources and lists.