Back to prompt library
Text · General-purpose LLMForm Validation Rules for Leave RequestsPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMOther

Form Validation Rules for Leave Requests

{ "rules": [ { "leaveType": "Marriage Leave", "validity": "When an employee gets married, 3 working days of leave are granted.

79Views
Full promptReplace variables in braces, then use it directly

# Form Validation Rules for Leave Requests ## Prompt ``` { "rules": [ { "leaveType": "Marriage Leave", "validity": "When an employee gets married, 3 working days of leave are granted.", "maxDays": 3 }, { "leaveType": "Spousal Birth Leave", "validity": "When an employee's spouse gives birth, 5 working days of leave are granted.", "maxDays": 5 }, { "leaveType": "Leave for Death of Close Relative (First Degree)", "validity": "When an employee's mother, father, sibling, spouse, or child passes away, 3 working days of leave are granted.", "maxDays": 3 }, { "leaveType": "Natural Disaster", "validity": "Leave granted due to natural disasters, up to 10 working days.", "maxDays": 10 }, { "leaveType": "Paid Maternity Leave", "validity": "Processing follows the relevant Law regarding pregnancy and maternity. It is a principle that female employees are not employed for 8 weeks before childbirth and 8 weeks after childbirth. In case of multiple pregnancies, two weeks are added to the 8-week period before childbirth.", "preBirthWeeks": 8, "postBirthWeeks": 8, "extraWeeksForMultiplePregnancy": 2, "workUntilPreWeeks": 3 }, { "leaveType": "Unpaid Maternity Leave", "validity": "Leave granted upon the employee's request for up to 6 months after paid maternity leave ends. It cannot be used in parts.", "maxMonths": 6 }, { "leaveType": "Health Check-up Leave for Pregnant Workers", "validity": "This type of leave can be used during monthly check-ups when the pregnant worker provides documentation of her pregnancy. There is no limit on the number of days.", "documentationRequired": true }, { "leaveType": "Social Compassion Leave", "validity": "The total compassion leave an employee can use in a year is 3 working days. Leave exceeding 3 days is deducted from annual leave.", "maxDaysPerYear": 3 }, { "leaveType": "Unpaid Leave", "validity": "This type of leave has no restrictions and is granted when the employer approves the employee's written request.", "documentationRequired": true } ], "generalRules": { "duplicateCheck": "If there is already a leave request within the same dates, the user should not submit another leave request.", "applicableFormId": 1 } } ``` ## How to Use Copy the prompt above and paste it into ChatGPT, Claude, or any AI assistant. Replace any placeholder text in brackets with your specific details. ## Compatible Models GPT-4o, Claude 3.5, Gemini, DeepSeek, Llama 3

3/5/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.