# Help for smart segment

**URL:** <https://community.forestadmin.com/t/help-for-smart-segment/5586>\
**Category:** Help me!\
**Created:** [November 25, 2022, 9:08am UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586 "2022-11-25T09:08:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romain\_Devillez](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/romain_devillez/32/5414_2.png) [@Romain\_Devillez](https://community.forestadmin.com/u/Romain_Devillez)\
**Post date:** [November 25, 2022, 9:08am UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/1 "2022-11-25T09:08:00Z")

</div>

![Capture d’écran 2022-11-25 à 08.33.33](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/1/1ff69a75d0cd3da681e6de58e552c07e4922f757.png)  
 ![Capture d’écran 2022-11-25 à 08.32.34](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/f/f1396e044b01a71da438f7fe92fd8b8a718173ac.png)  
 ![Capture d’écran 2022-11-25 à 08.32.11 (1)](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/6/66f2fd7730cc7e5d10235fbe7292453073de4629.png)

## Feature(s) impacted

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [November 25, 2022, 9:35am UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/2 "2022-11-25T09:35:31Z")

</div>

Hello @Romain_Devillez,

Thanks for reaching out and welcome to our community 🙌

Could you please tell me:

- what’s your problem exactly?
- what agent name and version are you using?
- what is your project name?
- if you did check this documentation [page](https://docs.forestadmin.com/documentation/reference-guide/smart-segments)?

Thanks.

---

<div class="post-metadata">

**Author:** ![Romain\_Devillez](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/romain_devillez/32/5414_2.png) [@Romain\_Devillez](https://community.forestadmin.com/u/Romain_Devillez)\
**Post date:** [November 25, 2022, 9:53am UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/3 "2022-11-25T09:53:30Z")

</div>

Problem :  
I can’t sort the data in the smart segment.

Agent name:  
app.dailyn.forest-admin-backend  
“forest-express”: “^9.4.4”,  
“forest-express-sequelize”: “^8.5.3”,

I check the documation:  
The documentation does not mention using segment smarts with just smart collections.  
The documentation uses models, I don’t. I just have data which transit they are not stored on forest.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [November 25, 2022, 10:54am UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/5 "2022-11-25T10:54:17Z")

</div>

Hey 👋

As visible in our [smart fields documentation](https://docs.forestadmin.com/documentation/reference-guide/smart-fields/smart-field-examples/sort-by-smart-field), you’ll need to add the `isSortable` property to the fields you want to sort by, as well as handling the sort feature manually in the data retrieval route.

Let me know if that helps 🙏

---

<div class="post-metadata">

**Author:** ![Romain\_Devillez](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/romain_devillez/32/5414_2.png) [@Romain\_Devillez](https://community.forestadmin.com/u/Romain_Devillez)\
**Post date:** [November 25, 2022, 3:11pm UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/6 "2022-11-25T15:11:41Z")

</div>

Ok, I added the option but I still don’t see the email field appear in the smart segment.  
I want my email to appear when I click on the smart segment.

Thx for your help.

 ![Capture d’écran 2022-11-25 à 16.11.26](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0072830931c7d10ea6995c82641960e0030d42a4.png)  
 ![Capture d’écran 2022-11-25 à 16.09.58](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/7/78aa986af6574ab8759e0e94f8ea3ef0d5542ce4.png)  
 ![Capture d’écran 2022-11-25 à 16.10.11](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/f/f0df817bd80fc3a0893986667d2e8e0daa0a7c02.png)

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [November 25, 2022, 3:23pm UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/7 "2022-11-25T15:23:26Z")

</div>

Ok, I missed that in the first screen.

I’m pretty sure the `fields` option is not available for segments definition.  
If you want to show this field on the UI only for your segment, you should be able to do so by enabled the “Independent layout configuration” on your segment, and move this email field as a smart field of your collection (Allowing you to display it in the segment but not in the collection view).

Let me know if that helps.

---

<div class="post-metadata">

**Author:** ![Romain\_Devillez](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/romain_devillez/32/5414_2.png) [@Romain\_Devillez](https://community.forestadmin.com/u/Romain_Devillez)\
**Post date:** [November 28, 2022, 12:18pm UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/8 "2022-11-28T12:18:21Z")

</div>

![Capture d’écran 2022-11-28 à 13.15.11](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/c/cfd59ef1aa18c31b9652199ad5d738477b5e010b.png)  
 ![Capture d’écran 2022-11-28 à 13.15.31](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/f/f409a20a99256d35ee14122c0b20e83ec4a56fa7.png)  
 ![Capture d’écran 2022-11-28 à 13.16.01](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/d150ede8802e530e672e01789355822c3867ccb9.png)

Hello

I activated the option but the data is still not displayed correctly. 😕

thank you for your help

Romain

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [November 28, 2022, 1:05pm UTC](https://community.forestadmin.com/t/help-for-smart-segment/5586/9 "2022-11-28T13:05:14Z")

</div>

You’ll still need to remove the “fields” section of the `segments` definition.

In order to check why the field “email” has not value, I’ll need the response request and payload of the matching HTTP call done by your browser (Accessible in the Network tabs in your browser development tools).

Thanks in advance.
