opnform-host-nginx/api/app
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
..
Console Update tax rate for Finland in GenerateTaxExport command 2025-04-28 14:25:23 +02:00
Enums Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Events Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Exceptions Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Exports Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Http Slug customisation (#755) 2025-05-19 21:06:54 +02:00
Integrations Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
Jobs Refactor Form Submission Logic and Improve File Handling 2025-05-07 20:03:56 +02:00
Listeners Custom SMTP Settings (#561) 2024-09-24 12:16:20 +02:00
Mail Apply Mentions everywhere (#595) 2024-10-22 10:34:29 +02:00
Models Enhance Form Visibility Logic and UI Components 2025-05-16 19:59:08 +02:00
Notifications Improve Email Notification Message-ID and Threading Generation 2025-03-06 13:21:12 +08:00
Open Fix quill and mentions (#758) 2025-05-16 17:09:07 +02:00
Policies Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
Providers Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
Rules Slug customisation (#755) 2025-05-19 21:06:54 +02:00
Service Refactor Form Submission Logic and Improve File Handling 2025-05-07 20:03:56 +02:00
Traits Implement EnsureUserHasWorkspace Trait and Integrate into Controllers… (#741) 2025-04-28 18:03:38 +02:00
helpers.php Custom SMTP Settings (#561) 2024-09-24 12:16:20 +02:00