Dhruwang
4161e4c4e9
fix: migration id
2026-01-15 11:10:00 +05:30
Dhruwang
4c38b4989a
removed custom error message
2026-01-13 14:14:49 +05:30
Dhruwang
9bdb040dbf
feat: migrate legacy validation to validation rules system
...
- Add data migration to convert charLimit (Open Text) to minLength/maxLength validation rules
- Add data migration to convert allowedFileExtensions (File Upload) to fileExtensionIs validation rule
- Migration is idempotent and fail-fast (rolls back entire transaction on any error)
- Remove legacy fields after successful migration
- Add uuid dependency for validation rule ID generation
2026-01-13 13:58:48 +05:30
Dhruwang
1473897e45
fix build
2026-01-13 11:55:31 +05:30
Dhruwang
ddf25932ed
fix sonar issues
2026-01-13 11:44:11 +05:30
Dhruwang
dce291825d
Merge branch 'main' of https://github.com/formbricks/formbricks into feat/validation-in-survey-package
2026-01-13 11:28:13 +05:30
Dhruwang
760408a09a
addressed feedback
2026-01-13 11:25:53 +05:30
Theodór Tómas
4a2eeac90b
perf: reduce bundle size ( #7094 )
2026-01-12 16:57:12 +00:00
Dhruwang
86b45c22b2
bug fixes
2026-01-12 20:23:28 +05:30
Dhruwang
ca810c83cb
code rabbit feedback
2026-01-12 19:25:12 +05:30
Dhruwang
e1926b46da
fix: build and test
2026-01-12 19:05:43 +05:30
Dhruwang
539e7a0fc3
broke validation rule editor into smaller components
2026-01-12 18:01:14 +05:30
Dhruwang
4477006cfb
added missing translations
2026-01-12 17:36:39 +05:30
Dhruwang
ea661657b5
added validation for contact and address question
2026-01-12 17:10:21 +05:30
Dhruwang
0a134038de
introduced validation object into element object
2026-01-12 15:38:04 +05:30
Dhruwang
a117ff596d
added validation rules for open text question
2026-01-12 14:14:57 +05:30
Dhruwang
08773a3784
cleanups
2026-01-12 12:48:02 +05:30
Dhruwang
1f59ef3d57
added validation rules for file upload
2026-01-12 12:31:03 +05:30
Dhruwang
2ee81b6aff
removed dnd and fixed capitalization
2026-01-12 11:24:24 +05:30
Anshuman Pandey
46be3e7d70
feat: webhook secret ( #7084 )
2026-01-09 12:31:29 +00:00
Dhruwang Jariwala
6d140532a7
feat: add IP address capture functionality to surveys ( #7079 )
2026-01-09 11:28:05 +00:00
Dhruwang
80107d7ec2
added validation for matrix question
2026-01-09 14:02:50 +05:30
Dhruwang Jariwala
8c4a7f1518
fix: remove subheader field from survey element presets ( #7078 )
2026-01-09 08:28:48 +00:00
Dhruwang
89ffae9694
added validation rules for rankning question
2026-01-09 12:51:20 +05:30
Dhruwang
e8345d3617
Introduced validation logic options (and , or)
2026-01-09 12:25:50 +05:30
Dhruwang
dd1c525ed7
added validation rules for multi choice questions
2026-01-09 12:12:41 +05:30
Dhruwang
632da15df6
added validation rules for open text and date
2026-01-09 11:52:33 +05:30
Dhruwang
223f8c3cc7
corrected required toggle behaviour
2026-01-09 10:50:24 +05:30
Dhruwang
3bde4be90d
bug fixes
2026-01-08 19:48:43 +05:30
Dhruwang
7362f8c5c9
fix: error message tweaks
2026-01-08 18:41:24 +05:30
Dhruwang
79c0c3a209
fix: integrate picture selection element with centralized validation
...
- Remove local validation logic from PictureSelectionElement
- Accept errorMessage prop from centralized validation
- Pass errorMessage to PictureSelect component
- Remove unused useTranslation import
2026-01-08 17:19:38 +05:30
Dhruwang
018563ba03
fix: integrate single select element with centralized validation
...
- Remove local validation logic from MultipleChoiceSingleElement
- Accept errorMessage prop from centralized validation
- Pass errorMessage to SingleSelect component
- Remove unused useTranslation import
2026-01-08 17:12:59 +05:30
Dhruwang
5dddfc0406
feat: implement centralized validation in surveys package
...
- Create centralized validator registry with all validation rules
- Implement evaluator with legacy compatibility (element.required, inputType)
- Update block-conditional to use centralized validation
- Update element components to accept errorMessage prop
- Remove local validation logic from OpenText and MultipleChoiceMulti elements
- Add error messages to locales
- Remove unused translation key
2026-01-08 16:02:38 +05:30
Dhruwang
67161155a9
fix build
2026-01-08 15:48:45 +05:30
Dhruwang
9b0cf5f532
refactor: update validation rule types for survey elements
...
- Replace TValidationRule with specific validation rule types for each survey element in their respective forms.
- Ensure type safety by introducing TValidationRulesFor* types for Address, Cal, Consent, Contact Info, CTA, Date, File Upload, Matrix, Multiple Choice, NPS, Open Text, Picture Selection, Ranking, and Rating elements.
- Update the ZSurveyElement definitions to include the new validation rules schemas.
2026-01-08 15:14:29 +05:30
Dhruwang
a32241d7c8
fix sonar and code rabbit issues
2026-01-08 14:34:12 +05:30
Dhruwang
a296ad189a
fix: resolve linting issues in validation rules editor component
2026-01-08 14:08:13 +05:30
Dhruwang
942cb0f8d0
fix lint error
2026-01-08 13:53:06 +05:30
Dhruwang
3e3b8cc349
feat: add validation rules editor UI and refactor required logic
...
- Add ValidationRulesEditor component with drag-and-drop support
- Integrate validation rules editor into all element forms
- Refactor element components to derive 'required' state from validationRules
- Remove legacy 'required' toggle from element form inputs
- Update Headline component to use validationRules instead of required prop
- Remove unused translation keys (input_type, maximum, minimum, character_limit_toggle)
- Fix TypeScript serialization issue by using z.lazy for validation rules schema
- Simplify element type definitions by removing narrowed validation rule types
2026-01-08 13:47:14 +05:30
Dhruwang Jariwala
63fe32a786
chore: parallel processing in lingo.dev ( #7080 )
2026-01-08 05:03:31 +00:00
Matti Nannt
84c465f974
fix: ensure deterministic instanceId via secondary sort key ( #7070 )
2026-01-07 14:04:56 +00:00
Johannes
6a33498737
feat: Custom HTML scripts in link surveys ( #7064 )
...
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com >
2026-01-07 10:06:41 +00:00
Matti Nannt
5130c747d4
chore: license server staging config ( #7075 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com >
2026-01-07 09:50:18 +00:00
Dhruwang Jariwala
f5583d2652
fix: add background color to button URL input in CTA element form ( #7077 )
2026-01-07 09:17:38 +00:00
Fahleen Arif
e0d75914a4
fix: update placeholder text for name input field in invite members form ( #7054 )
...
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com >
2026-01-07 08:18:36 +00:00
Dhruwang Jariwala
f02ca1cfe1
chore: remove string concatenation welcome card ( #7073 )
...
Co-authored-by: Balázs Úr <balazs@urbalazs.hu >
2026-01-07 07:25:20 +00:00
Anshuman Pandey
4ade83f189
fix: contacts refresh button ( #7066 )
2026-01-06 12:31:20 +00:00
Jagadish Madavalkar
f1fc9fea2c
fix: api-wrapper returns valid malformed response ( #7053 )
...
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com >
2026-01-06 10:24:39 +00:00
Dhruwang Jariwala
25266e4566
fix: disappearing survey preview ( #7065 )
2026-01-06 06:23:11 +00:00
Matti Nannt
b960cfd2a1
chore: harden CSP and X-Frame-Options headers ( #7062 )
...
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com >
2026-01-06 06:21:19 +00:00