Back

Guide to Assets Custom Fields (including Map Location)

Assets Custom Fields let you add your own fields to the fixed asset screen to record any data you need alongside the built-in fields, including a Map Location field that pins the asset on Google Maps with real coordinates that are saved with the asset and shown on its page. This guide explains how to open the assets field designer, add fields, set their properties and save them, then how to pick the location on the map when adding or editing an asset and how it appears on the asset view page.

Note: The field types and properties in the assets field designer always appear in English (for example Map Location and Is Required?), even on an Arabic interface, so this guide names them exactly as they appear on screen. On the asset screen itself the fields appear with the labels you give them, and the map field shows the Address box and the Show Map button.

Before You Start

  • The Accounting module must be enabled on your account; fixed assets are part of it, and Accounting Settings is opened from it.
  • The Edit General Settings permission to save fields in the designer. Without it the designer may open, but Save is refused.
  • The Add New Assets permission to add or edit assets and fill in their custom fields, including picking the location on the map.
  • Asset fields are created only from the Assets Custom Fields card in Accounting Settings. Fields added from the clients or products settings, or from the old custom forms screens, do not appear on assets.
  • The Map Location field relies on Google Maps, which Daftra loads with its own key; you need no setting or key of your own, but your browser or ad blocker must not block Google Maps.
  • The map field is independent of the built-in Physical Location field on the asset screen: the map field saves real coordinates, while Physical Location is a name chosen from a predefined list. Both can be used together.

Steps to Add Assets Custom Fields

Step 1: Open the Assets Field Designer

  1. From the main menu open Accounting → Accounting Settings.
  2. Click the Assets Custom Fields card. The field designer opens: the list of field types on one side, the form area where you drop fields on the other, and the Save and Cancel buttons at the top.

Note: The card is visible to everyone who can open Accounting Settings, but saving fields requires the Edit General Settings permission. If you cannot find the card, make sure the Accounting module is enabled.

Step 2: Add a Field (General)

  1. Drag the field type you need from the types list and drop it in the form area, such as Single Line Field for short text, Number for a number, or Dropdown for a list of options you type yourself.
  2. Click the field to open its properties, then enter the Field Label, the name users see on the asset screen (2 to 255 characters). The Key is generated automatically from an English label; if the label is in another language, type the key manually in Latin letters.
  3. Set the remaining properties according to the field type: Default Value, Placeholder, Filter by this Field? and List by this Field? under properties, Is Required? under validation, and Allow Beside and Field Size under layout (see Settings Explained).
  4. For a Dynamic Dropdown or Multiple Dynamic Dropdown field, choose the Entity from which the options are fetched automatically (for example, countries), then the Listing Field that is displayed as the options; you do not need to type the options yourself.
  5. Repeat for the other fields. Drag a field to reorder it, and use the delete icon on a field to remove it.

Caution: The Key is required for every field except Static Content and Separator. It must be 2 to 50 characters of letters, numbers, dashes and underscores only, contain at least one letter, not contain a double underscore, and be unique across the asset fields. Otherwise messages such as The key of field may only contain letters, numbers, dashes and underscores., The :attribute field has a duplicate value., The :attribute field is required. or Most remove double __ in field label and in field Key appear, and none of the fields is saved until you correct the field named in the message.

Example: To add a “Country of origin” field, add a Dynamic Dropdown, choose the countries entity under Entity and the country name under Listing Field; the list of countries then appears automatically on the asset screen without being entered manually.

Step 3: Add a Map Location Field

  1. Drag Map Location (the map icon) from the types list and drop it in the form area. This is the type that adds a location on the map to a fixed asset.
  2. Enter a Field Label such as “Location on map” and a Key such as map_location.
  3. Turn on Is Required? if every asset must have a pinned location, and set Allow Beside and Field Size to suit your layout. Default Value can be left empty.
  4. Note that this type does not offer the Placeholder, Filter by this Field? and List by this Field? properties, so a map field cannot be a column or a filter in the assets list.

Tip: You can add more than one Map Location field with different keys, for example an installation site and a storage site, as long as each field has a unique Key.

Step 4: Save and Preview the Field on the Asset Screen

  1. Click Save at the top of the designer. If an error message appears, correct the field it names and save again; no field is saved while the form contains an invalid field.
  2. Open Accounting → Assets → Add Asset, or open an existing asset for editing. The Asset More Information card appears at the bottom of the form with the fields you created, in the same order.

Result: The custom fields appear on the add and edit asset screens, and their values appear on the asset view page, for new assets and previously recorded assets alike.

Step 5: Pick the Location on the Map When Adding or Editing an Asset

  1. In the Asset More Information card the map field shows a read-only Address box, a clear button next to it, and a Show Map button. Click Show Map.
  2. The browser may ask for permission to use your current location to center the map. If you refuse or the location cannot be detected, the message The system cannot detect your Location Please check Your Settings appears and the map opens at a default position; this does not stop you from picking the location manually.
  3. Click the required place on the map or drag the marker to it, or click the current-location control in the corner of the map. The Address box is filled automatically from Google Maps, and the latitude, longitude and current zoom level are saved with it.
  4. To clear the location, click the clear button next to Address; the coordinates and the address are cleared together.
  5. Complete the rest of the asset data and click Save.

Warning: Once depreciation or transactions have been recorded on an asset, most of the edit form is locked and only the description and attachments remain editable, so pin the location when you create the asset or before its depreciation starts. If the map field is required (Is Required?), the asset cannot be saved until a location is pinned.

Step 6: View the Location on the Asset Page

  1. Open the asset from the Assets list. The view page shows the Asset More Information card with an embedded Google map at the saved location, at the same zoom level you chose.
  2. If no map appears, a complete location (coordinates and zoom level) was not saved for this asset; edit the asset, pick the location with Show Map, and save.

Note: The Asset More Information card is hidden on the view page when no field has been saved in the designer. No map appears in the assets list either, since the map field is neither a column nor a filter.

Settings Explained

Property in the designer Default What it does
Field Label — The field name as shown on the asset screen and view page. 2 to 255 characters, and it must not contain a double underscore.
Key Generated from the label The field’s internal identifier, used in print templates and exports. 2 to 50 Latin letters, numbers, dashes or underscores, with at least one letter, unique across the asset fields. Not required for Static Content and Separator.
Default Value Empty A value pre-filled in the field when a new asset is added. Usually left empty for Map Location.
Placeholder Empty Faint hint text inside the field. Not available for Map Location, Toggle, File, Image, Multiple Sub-Forms and Static Content.
Filter by this Field? Off Adds the field to the assets list filters. Not available for Map Location, File, Image, Multiple Sub-Forms, Static Content and Formatted Text.
List by this Field? Off Shows the field as a column in the assets list. Not available for Map Location, Multiple Sub-Forms, Static Content and Formatted Text.
Is Required? Off Prevents saving the asset until the field is filled. For Map Location a pinned location is required, not a typed address.
Allow Beside Off Lets the next field appear beside this one on the same row instead of on a new row.
Field Size Medium The field width on the asset screen: X-small, Small, Medium, Large or X-large.
Entity / Listing Field — Only for Dynamic Dropdown and Multiple Dynamic Dropdown: the entity the options are fetched from, and the field displayed as the options. Both are required for these two types.
Field type as shown in the designer Use Column or filter in the assets list
Single Line Field / Multi-Lines Field Short text on one line, or long text on several lines. Available
URL Field / Email Field / Phone Number A link, an email address or a phone number in a validated format. Available
Date / Time A date or a time. Available
Currency / Number A monetary amount or a number. Available
Toggle An on/off switch (yes/no). Available
Map Location Pick a location on Google Maps; saves the address, latitude, longitude and zoom level, and shows an embedded map on the asset page. Not available
File / Image Upload a file (up to 100 MB) or an image (up to 5 MB). Not available as a filter
Multiple Sub-Forms A repeatable group of fields inside the asset; it must contain at least one field, otherwise the message You should add at least one field in the multiple sub-form appears. Not available
Separator A visual divider between groups of fields, with no value. Not available
Dropdown / Multiple Dropdown A list of options you type yourself, with a single or multiple selection. Available
Dynamic Dropdown / Multiple Dynamic Dropdown A list whose options are fetched automatically from an entity in the system (such as countries) through Entity and Listing Field. Available
Static Content / Formatted Text Fixed display-only text, or formatted text entered by the user. Not available
  • The built-in Physical Location on the asset screen is a different field: a list of location names managed from Accounting Settings → Physical Locations, with no coordinates, and it is not a cost center.
  • Custom field values are saved with the asset and appear on the add and edit screens and on the view page, and they can be referenced in print templates by the field key.
  • Google Maps is loaded with Daftra’s own key, so there is no key setting in your account.

Frequently Asked Questions

Can a location on the map be added to a fixed asset?

Yes. From Accounting Settings → Assets Custom Fields, add a field of type Map Location and save. The field then appears in the Asset More Information card when adding or editing an asset; pick the location with Show Map, and the coordinates are saved with the asset and shown as an embedded map on its view page. The built-in Physical Location field, by contrast, is only a location name with no map.

What is the difference between Physical Location and the Map Location field?

Physical Location is a built-in field on the asset screen that picks a location name from a list you define under Accounting Settings → Physical Locations (such as a building or floor), with no coordinates, and it can be used as a filter in the assets list. Map Location is a custom field you create that saves an address and real coordinates on Google Maps and shows a map on the asset page, and it cannot be used as a filter. Both can be used on the same asset.

Why does the map not appear on the asset view page?

The map appears only when a complete location (latitude, longitude and zoom level) was saved for the asset. If the user did not click Show Map and pin a location before saving, the field stays empty and no map is shown; edit the asset, pin the location and save. If the browser or an ad blocker blocks Google Maps, neither the map nor the picker appears; allow it to load and try again.

Why is Save refused in the field designer?

Either your role lacks the Edit General Settings permission, so the designer opens but saving is refused, or one of the fields fails validation: a duplicate key, a key with disallowed characters or a double underscore, a label shorter than two characters, or a Multiple Sub-Forms field with no field inside it. The error appears in English, for example The :attribute field has a duplicate value.; correct the field named and save again.

Can the map field be used as a filter or a column in the assets list?

No. The Map Location type has no Filter by this Field? or List by this Field? properties, so it appears only on the asset screen and view page. If you need to filter by place, use the built-in Physical Location field or a custom Dropdown field alongside the map field.

Do new fields appear on previously recorded assets?

Yes. As soon as the fields are saved in the designer they appear on the edit screen and view page of every asset, empty until filled in. However, an asset that already has depreciation or transactions recorded has most of its form locked, with only the description and attachments editable, so its custom fields may not be fillable.

I cannot find a type called Map in the designer. Where is it?

Look for Map Location, with the map icon, in the types list of the assets field designer. Also make sure you are in the Assets Custom Fields designer opened from Accounting Settings, not in the clients or products custom fields.

Why does the message about not detecting my location appear when I click Show Map?

Because the browser did not allow access to your current location, which is used only to center the map when it opens. The map then opens at a default position, and you can pin the asset’s location manually by clicking the map or dragging the marker, then save.