Pretty Conversational form url slug (Include this setting within the plugin )
Could you please include this option directly within the plugin?
Itโs quite inconvenient to run it via a snippet. Also, it would be great if the design and share URL could update automatically as changes are made.
https://fluentforms.com/docs/creating-pretty-conversational-form-url-slug/
The reason we made that available via hook is for performance. As we don't know what the custom slug you need is and if we want to provide an option, it needs to be queried and run on every request, which is a bit expensive (for the server).
Shahjahan Jewelย we are already using a slug, all we want to do is change it and there is a process for it already, all we want to do is make it within the forms plugin,
โ Suggested Feature: Native Slug Customization for Conversational Forms
Feature Name:ย Pretty URL Slug Settings for Conversational Forms
Goal:
Allow users to set a custom slug for conversational forms directly within Fluent Formsโ settings panelโno need to touchย functions.phpย or add custom code snippets.
๐ง How It Would Work:
1.ย
Global Setting (Settings > Conversational Forms Tab)
Add a simple field:
- Label:ย โCustom Slug for Conversational Form URLsโ
- Input Field:ย Text input (default:ย fluent-form)
- Tooltip:ย โThis will replace the defaultย ?fluent-form=IDย URL with a prettier structure likeย /my-forms/123. Make sure to re-save permalinks after changing this.โ
โ Automatically call the rewrite logic on save
โ Programmatically re-save permalinks or display a notice prompting the user to re-save
2.ย
Optional Per-Form Override (under individual conversational form settings)
Add an optional override:
- Checkbox: โOverride global slug for this formโ
- Text field: โCustom Slugโ
- Preview: Show resulting URL (e.g.,ย https://yoursite.com/\[slug]/123/SECURITYCODE)
๐ง Developer Considerations
- Move theย customFfLandingPageSlug()ย logic into the Fluent Forms core, encapsulated in a service class or helper.
- Avoid breaking current behavior by detecting if the feature is enabled.
- Auto-trigger aย flush_rewrite_rules()ย when the setting changes.
๐ Benefits
- Non-technical users can set custom slugs easily.
- Centralized control from the Fluent Forms admin panel.
- More polished UX with branded/cleaner URLs.