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. Create the form
Section titled “1. Create the form”- Forms app → Form management → New form.
- Title:
Araç Kontrol Formu - Code: change the suggested code
ARAC-KONTROL-FORMUtoARAC-KONTROL. - Description:
Sürücülerin her sabah, araca binmeden önce doldurduğu kontrol formu. - Create and design.
The form opens in the designer with an empty page.
2. Form settings
Section titled “2. Form settings”- At the top of the Properties panel, in Shows the properties of, choose Form.
- Navigation: Wizard.
- Progress indicator: Pages; Progress position: Above.
- Preview before sending: Answered only.
- Completion title:
Teşekkürler; Completion message:Araç kontrolünüz kaydedildi. İyi yolculuklar.
3. Page 1: Vehicle details
Section titled “3. Page 1: Vehicle details”Set the title of the page tab to Araç bilgileri. Then add the following elements in order.
Plate
- Toolbox → Input fields → Short text.
- Key:
plaka; Label:Aracın plakası; Description:Boşluklarla yazın. - Placeholder:
34 ABC 123 - Width: Half.
- In the toolbar, turn on Required.
- 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.
- Pattern:
- Turn on Use in search (to find submissions by plate).
Check date
- Add a Date. Key:
kontrol_tarihi; Label:Kontrol tarihi; Width: Half; Required. - Logic → Default value:
today() - Maximum:
today()(a future date cannot be picked). - Turn on Use in search.
Mileage
- Add a Number. Key:
km_sayaci; Label:Kilometre sayacı; Required. - Format: Whole number; Unit:
km; Minimum:0.
Driver
- Add a Short text. Key:
surucu; Label:Sürücünün adı soyadı; Required.
4. Page 2: Checklist
Section titled “4. Page 2: Checklist”- In the page bar, click Add page and set the title to
Kontrol listesi.
Check matrix
-
Add Choice fields → Matrix. Key:
kontroller; Label:Aşağıdakileri kontrol edin. -
Rows (Value, Label):
Value Label farlarFarlar ve sinyaller sileceklerSilecekler frenlerFrenler lastiklerLastikler yagMotor yağı seviyesi -
Columns:
Value Label uygunUygun uygun_degilUygun değil -
Turn on Every row required.
Fuel level
- Add a Slider. Key:
yakit; Label:Yakıt seviyesi. - Minimum:
0; Maximum:100; Step:25; Unit:%. - Lowest label:
Boş; Highest label:Dolu.
Is there a fault
- Add a Yes or no. Key:
ariza_var; Label:Araçta arıza ya da hasar var mı?; Required. - Appearance: Yes / No; “Yes” label:
Var; “No” label:Yok.
Fault description
- Add a Long text. Key:
ariza_aciklama; Label:Arızayı ya da hasarı tarif edin. - Logic → Visible when:
ariza_var == true - Logic → Required when:
ariza_var == true - Turn on Show character counter; Maximum characters:
1000.
Damage photo
- Add Files → Photo. Key:
hasar_foto; Label:Hasar ya da arıza fotoğrafı. - Maximum files:
3. - Visible when:
ariza_var == true
5. Page 3: Confirmation
Section titled “5. Page 3: Confirmation”- Add page, title
Onay. - Add Display → Text block. Content:
Yukarıdaki bilgilerin doğru olduğunu ve aracı kontrol ettiğimi beyan ederim. - 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”- Shows the properties of → Form → Conditional closing → add a row.
- Condition:
ariza_var == true - 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.
7. Save and preview
Section titled “7. Save and preview”- Save. The toolbar says “Draft saved”.
- Switch to the Preview view. Device size: Phone.
- Try the following:
- Type
34abc123as 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.
- Type
- The Result below the preview should say “It can be submitted as it stands.”
8. Add a test scenario
Section titled “8. Add a test scenario”- In the Tests view, click New scenario; name:
Arıza varsa açıklama zorunlu. - Steps:
- Give an answer:
plaka=34 ABC 123,km_sayaci=45210,surucu=Ayşe Yılmaz,ariza_var= Yes. - It should be:
ariza_aciklamarequired. - Submit: it should be refused.
- Give an answer:
ariza_aciklama=Sol ön far yanmıyor.
- Give an answer:
- 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.)
9. Publish
Section titled “9. Publish”- Get ready to publish. The Before publishing summary shows the 3 pages and the number of elements; there should be no errors.
- Release note:
İlk sürüm. - Publish. Result: “v1 is published”.
10. Open it to drivers
Section titled “10. Open it to drivers”- Click Share.
- Under Employee groups, pick the
Sürücülergroup (or, under Units, locations, collar, pickLojistikin Org units). - 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.