opnform-host-nginx/api/app/Http/Requests
Chirag Chhatrala cc2b0e989d
Slug customisation (#755)
* Enhance Form Slug Handling and Validation Logic

- Updated `FormController.php` to conditionally set the form slug based on the `self_hosted` configuration, ensuring proper slug assignment during form creation and updates.
- Introduced `CustomSlugRule.php` to validate custom slugs, enforcing format and uniqueness constraints, and integrated this rule into `UserFormRequest.php`.
- Enhanced the `FormCustomSeo.vue` component to include a field for custom URL slugs, improving user experience by allowing users to define unique identifiers for their forms.
- Updated API routes to apply middleware for form updates, ensuring proper form resolution during requests.

These changes aim to improve the functionality and user experience related to form slug management and validation.

* Test case for Custom slug

* Update OpenCompleteForm and FormCustomSeo for Improved Functionality and Clarity

- Modified `OpenCompleteForm.vue` to ensure `submissionId` is correctly referenced as `submissionId.value`, enhancing data handling during form initialization.
- Updated `FormCustomSeo.vue` to rename "Custom URL Slug" to "Custom Form URL" for better clarity and user understanding, ensuring consistent terminology across the application.
- Enhanced `useFormInitialization.js` to include `submission_id` in the data passed to `form.resetAndFill`, improving the accuracy of form data handling.

These changes aim to improve the functionality and user experience of the form components by ensuring correct data references and clearer labeling.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-05-19 21:06:54 +02:00
..
Forms Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
Integration Add Telegram Notification Integration (#732) 2025-04-08 12:42:47 +02:00
Subscriptions Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Templates Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Workspace Enhance email settings functionality by adding sender address support (#668) 2025-01-27 16:07:01 +01:00
Zapier Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
AiGenerateFormRequest.php Decouple title from title block (#696) 2025-03-21 16:59:18 +01:00
AnswerFormRequest.php Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
CreateTokenRequest.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
FormStatsRequest.php Better Form Stats (#567) 2024-09-18 19:20:52 +02:00
FormSubmissionExportRequest.php Enhance Form Submission Export Functionality (#657) 2025-01-07 15:04:02 +01:00
StoreFormRequest.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
UpdateFormRequest.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
UploadAssetRequest.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
UserFormRequest.php Slug customisation (#755) 2025-05-19 21:06:54 +02:00