# Insert new or Sort entity Custom Fields

**URL:** <https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546>\
**Category:** V5 Question\
**Created:** [September 21, 2016, 11:09pm UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546 "2016-09-21T23:09:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [September 21, 2016, 11:09pm UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/1 "2016-09-21T23:09:50Z")

</div>

I recently wanted to add in a new Custom Field on the Customers `Entity Type`, but realised there is no way to insert a new field between 2 existing fields, or to change the sort order of the custom fields.

For example:

 ![](https://forum.sambapos.com/uploads/default/original/3X/6/5/657c4ffd5fcaf0af35e2e731f05784b0aa77e0d6.png)

It’s really annoying if you have many custom fields setup with RegEx or other parameters, you need to re-create them all just to change the sort order or insert a new field. Probably if they have data stored, that data would be lost too (haven’t tested!)…

I checked the DB, there isn’t any sorting ability added there either.

Am I missing something? If not, can this feature be added?

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [September 21, 2016, 11:25pm UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/2 "2016-09-21T23:25:32Z")

</div>

I just found this old topic:

> [@Custom Entity Fields](https://forum.sambapos.com/t/custom-entity-fields/7076):
>
> Does anybody know if we can get more fields on the Entity Editing Screen as shown Below: [image] Also can we sort the fields on a permanent basis: Issue? Just a note: not sure if this is an issue or not as I found conflicting data about primary keys. I found if I used “Name” in my field list but had changed the Primary Key to something else AND used “Name” in my Account Format - the Account Key doubles up on Primary Key? Bad Entry (Note - “Name” already deleted from Custom fiel…

It mentions about this already, but importantly I saw that sorting is possible on the `Entity Search` screen by right clicking and selecting “Design Mode” (didn’t know you can do that with default Entity Search screens!). You can then change the sort order after selecting the field by using the buttons as shown below:

 ![](https://forum.sambapos.com/uploads/default/original/3X/4/6/46c430f8302a27896a05a92f471f5b9dae931b5d.png)

I’ll keep this topic here as the older topic wasn’t as easy to find.

---

<div class="post-metadata">

**Author:** ![pauln](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pauln/32/12698_2.png) [@pauln](https://forum.sambapos.com/u/pauln)\
**Post date:** [September 21, 2016, 11:32pm UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/3 "2016-09-21T23:32:00Z")

</div>

Yikes! 😮 A year ago…

You know I still struggle with just having a number i.e. 01234 listed on the Customer (Entity Management) Screen. @emre would of been great to have a few more selected from Custom Fields…

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [September 23, 2016, 4:53am UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/4 "2016-09-23T04:53:26Z")

</div>

Really loving the way `Create New Entity` screens can be modified. I really never knew they supported Design Mode, and also thought we were stuck to one field per line, but now realised I can do this… 😀

 ![](https://forum.sambapos.com/uploads/default/original/3X/a/c/acb7a7323f8628ee33cf1b8e2e1d572e2fd82446.png)

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 23, 2016, 4:56am UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/5 "2016-09-23T04:56:35Z")

</div>

And layout file (XML) will store in C:\Users\YourUserName\Documents\SambaPOS5\Layout

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [September 23, 2016, 10:12am UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/6 "2016-09-23T10:12:22Z")

</div>

> [@sukasem](#):
>
> And layout file (XML) will store in C:\Users\YourUserName\Documents\SambaPOS5\Layout

This is a good tip as adding new fields may confuse layouts and you may need to delete layout file to reset.

---

<div class="post-metadata">

**Author:** ![Ahmed1977](https://forum.sambapos.com/user_avatar/forum.sambapos.com/ahmed1977/32/29540_2.png) [@Ahmed1977](https://forum.sambapos.com/u/Ahmed1977)\
**Post date:** [November 16, 2016, 3:12pm UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/7 "2016-11-16T15:12:05Z")

</div>

Hello markjw, can you guide me to make entering new customer details similar to what in the screen shoot.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [November 17, 2016, 1:41am UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/8 "2016-11-17T01:41:04Z")

</div>

For layout - Right click, select design mode…  
Fields are added in the entity settings in manage section.

---

<div class="post-metadata">

**Author:** ![Ahmed1977](https://forum.sambapos.com/user_avatar/forum.sambapos.com/ahmed1977/32/29540_2.png) [@Ahmed1977](https://forum.sambapos.com/u/Ahmed1977)\
**Post date:** [November 17, 2016, 5:17am UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/9 "2016-11-17T05:17:12Z")

</div>

Thank you for your reply, when I enable layout from the entity screen for the customer search every thing will be gone I got a blank screen, sorry may be my question is silly but I am not an expert like you, I am just try to modify the program to work for me and I am failing to do this till now.

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [November 21, 2016, 6:37pm UTC](https://forum.sambapos.com/t/insert-new-or-sort-entity-custom-fields/12546/10 "2016-11-21T18:37:50Z")

</div>

> [@Ahmed1977](#):
>
> when I enable layout from the entity screen for the customer search every thing will be gone I got a blank screen

Are you using V5? Did you follow the instructions JTR and I posted previously in the topic? If that doesn’t help, please post a screenshot.
