Skip to content

Required custom attribute is not being validated when creating a Person #2155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sagarkumar-webkul opened this issue Apr 8, 2025 · 0 comments
Assignees

Comments

@sagarkumar-webkul
Copy link
Collaborator

Bug report

Title

Required custom attribute is not being validated when creating a Person

Issue Description

A custom attribute (e.g., Gender) created for the Person entity and marked as "required" is not enforcing validation. The user is able to create a Person without selecting the required field. This causes incomplete data to be stored, which defeats the purpose of marking an attribute as mandatory.

Preconditions

1. Framework Version: Laravel 8 (default in Krayin v2.1)
2. Commit ID: 
3. Krayin CRM Version: 2.1

Steps to reproduce

1. Go to Settings → Automation → Attributes
2. Create a new attribute with:
    - Name: Gender
    - Entity Type: Person
    - Mark it as Required
3. Go to Contacts → Person
4. Click on "Create Person"
5. Leave the Gender field empty
6. Click "Save" or "Create"

Expected result

  • A validation message should appear indicating that the required field (Gender) must be filled.
  • The Person record should not be created until all required fields are provided.

Actual result

  • No validation error appears.
  • The Person record is saved even without the required field value.
  • This can result in bad/incomplete CRM data.

Attaching video link-https://webkul.chatwhizz.com/share/view-recording/67f4fab1280d9b1248502575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants