📦 Other & Niche

Form Validation Rules for Leave Requests

📁 Other & Niche 👤 Contributed by @muhtesemozgur9 🗓️ Updated
The prompt
{ "rules": [ { "leaveType": "Evlilik İzni", "validity": "Personelin evlenmesi halinde 3 iş günü şeklinde kullandırılır.", "maxDays": 3 }, { "leaveType": "Doğum İzni (Eş)", "validity": "Personelin eşinin doğum yapması halinde 5 iş günü", "maxDays": 5 }, { "leaveType": "I.Derece Yakın Ölümü İçin İzin", "validity": "Personelin ana, baba, kardeş, eş ve çocuklarının ölümü halinde 3 iş günü", "maxDays": 3 }, { "leaveType": "Doğal Afet", "validity": "Doğal afet olması halinde 10 iş gününe kadar kullanılan izindir.", "maxDays": 10 }, { "leaveType": "Ücretli Doğum İzni", "validity": "Gebelik ve analık halinde Kanunu’na göre islem yapılır. Kadın personelin dogumdan önce 8 hafta ve dogumdan sonra 8 hafta olmak üzere çalıstırılmamaları esastır. Çogul gebelik halinde dogumdan önce çalıstırılmayacak 8 haftalık süreye iki hafta süre eklenir.", "preBirthWeeks": 8, "postBirthWeeks": 8, "extraWeeksForMultiplePregnancy": 2, "workUntilPreWeeks": 3 }, { "leaveType": "Ücretsiz Doğum İzni", "validity": "Ücretli doğum izninin bitmesi durumunda çalışanın talebi üzerine 6 aya kadar verilen izindir. Parçalar halinde kullanılamaz.", "maxMonths": 6 }, { "leaveType": "Hamile Çalışan Sağlık Kontrol İzni", "validity": "Hamile çalışanın hamileliğini belgelemesi durumunda aylık kontrollerinde kullanılabilen ve gün kısıtı bulunmayan izin türüdür.", "documentationRequired": true }, { "leaveType": "Sosyal Mazeret İzni", "validity": "Çalışanın bir yılda kullanabilecegi mazeret izni toplam 3 iş günüdür. 3 günü aşan izinler yıllık izinden düşürülür.", "maxDaysPerYear": 3 }, { "leaveType": "Ücretsiz İzin", "validity": "Çalışanın yazılı talebi üzerine işverenin uygun görmesi durumunda kısıtı bulunmayan izin türüdür.", "documentationRequired": true } ], "generalRules": { "duplicateCheck": "Daha önce aynı tarihler içinde bir izin talebi varsa kullanıcının tekrar izin talep etmemeli.", "applicableFormId": 1 } }

How to use this prompt

Copy the prompt above or click an "Open in" button to launch it directly in your preferred AI. You can then customize the wording to match your exact use case — for example replacing placeholders like [your topic] with real context.

Which AI model works best

ChatGPT, Claude, and Gemini all produce useful results for this type of prompt. Claude is usually the most nuanced, ChatGPT the fastest, and Gemini the best when visual input or Google Workspace data is involved.

How to customize this prompt

Adapt the prompt to your specific use case. Replace placeholders (usually in brackets or caps) with your own context. The more detail you provide, the more precise the response.

Common use cases

  • Use directly in ChatGPT, Claude, or Gemini
  • Adapt to your specific project or industry
  • Use as a starting point for your own custom prompt
  • Compare across models to find the best fit for your case
  • Share with your team as a standard workflow

Variations

Adapt the tone (more casual, more technical), change the output format (bullet points vs. paragraphs), or add constraints (word limits, target audience).

Related prompts