# Add "form\_source" filter on Contacts view

**URL:** <https://forum.mautic.org/t/add-form-source-filter-on-contacts-view/23694>\
**Category:** Ideas and Feature Requests\
**Created:** [April 8, 2022, 3:38pm UTC](https://forum.mautic.org/t/add-form-source-filter-on-contacts-view/23694 "2022-04-08T15:38:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 8, 2022, 3:38pm UTC](https://forum.mautic.org/t/add-form-source-filter-on-contacts-view/23694/1 "2022-04-08T15:38:57Z")

</div>

Hello to all,

In the continuation of what @kuzmany proposed here :

> <https://github.com/mautic/mautic/pull/5849>
>
> \[//\]: # ( Please answer the following questions: )
> 
> | Q | A
> | --- | ---
> | B…ug fix? | Yes
> | New feature? | Yes
> | Automated tests included? |
> | Related user documentation PR URL | 
> | Related developer documentation PR URL | 
> | Issues addressed (#s or URLs) | https://github.com/mautic/mautic/issues/1883
> | BC breaks? | 
> | Deprecations? | 
> 
> \[//\]: # ( Note that all new features should have a related user and/or developer documentation PR in their respective repositories. )
> 
> \[//\]: # ( Required: )
> \#### Description:
> This PR added clickable number of unique clicks across all channels (email, sms, notification, dynamicContent) Click stats table. Number of unique clicks will redirect to contact list with related filter. Same like search commands: email\_sent, email\_read added few months ago. This PR added new search commands page\_id, page\_source, page\_source\_id
> Also this PR fixed issue if somebody wrote same search command twice and more time. This lines fixed it https://github.com/mautic/mautic/pull/5849/files#diff-3fa38c644457bfa255aabbc8bd7e5291R1090
> 
> Preview in email details template: 
> 
> !\[image\](https://user-images.githubusercontent.com/462477/37739302-ff77b918-2d59-11e8-91eb-863e680b5d66.png)
> 
> 
> \[//\]: # ( As applicable: )
> \#### Steps to reproduce the bug:
> 1. Try search with two same commands
> !\[image\](https://user-images.githubusercontent.com/462477/37739479-815537e4-2d5a-11e8-8090-52dc0c48e619.png)
> 2. If you use dev mode, error return. Or check logs for error something like 
> 
> \> The given alias xx is not unique in FROM 
> 
> \#### Steps to test this PR:
> 1. Apply PR and repeat steps
> 2. See no error 
> 
> \#### Steps to test this feature request:
> 
> 1. Apply PR and create email, notification, sms, dynamicContent with some click statistics
> 2. Go to all created entity to details
> 3. Scroll to click counts table and click on any number of unique clicks
> 4. Click should redirect to contacts page with search commands and related results
> 5. Check if all results works properly

Would it be possible to add a “form\_source” filter in the search engine of the “contacts” view?

What do you think about it?  
Pierre
