opnform-host-nginx/client/components/open/forms/components
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
..
form-components Slug customisation (#755) 2025-05-19 21:06:54 +02:00
form-logic-components Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
templates Form Editor v2.5 (#599) 2024-10-23 10:34:51 +02:00
AIFormLoadingMessages.vue Implement AI Loading Messages and Enhance Locale Handling in Forms (#737) 2025-04-01 17:54:10 +02:00
AdvancedFormUrlSettings.vue Decouple title from title block (#696) 2025-03-21 16:59:18 +01:00
BlockTypeIcon.vue Form editor v2 (#579) 2024-09-23 20:02:38 +02:00
CopyContent.vue Zapier integration (#491) 2024-08-12 11:14:02 +02:00
CustomFieldValidation.vue Add 'exists_in_submissions' and 'does_not_exist_in_submissions' valid… (#725) 2025-03-25 11:50:59 +01:00
FirstSubmissionModal.vue Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
FormColumnsSettingsModal.vue Enhance form column settings and table display 2025-02-17 15:51:14 +01:00
FormEditor.vue Add LogicConfirmationModal Component and Integrate Logic Validation (#742) 2025-04-28 18:41:39 +02:00
FormEditorErrorHandler.vue Add client linting to GitHub Actions workflow 2025-01-27 18:24:27 +01:00
FormEditorNavbar.vue Enhance Form Visibility Logic and UI Components 2025-05-16 19:59:08 +02:00
FormFieldsEditor.vue Form Editor v2.5 (#599) 2024-10-23 10:34:51 +02:00
FormStats.vue Partial submissions (#705) 2025-04-28 17:33:55 +02:00
FormStatusBadges.vue Enhance Form Visibility Logic and UI Components 2025-05-16 19:59:08 +02:00
FormSubmissions.vue Partial submissions (#705) 2025-04-28 17:33:55 +02:00
FormUrlPrefill.vue Matrix Improvements (#606) 2024-11-20 17:06:11 +01:00
FormWorkspaceModal.vue Add client linting to GitHub Actions workflow 2025-01-27 18:24:27 +01:00
ShareFormUrl.vue Add client linting to GitHub Actions workflow 2025-01-27 18:24:27 +01:00