# Custom activity fields

**URL:** <https://forum.intervals.icu/t/custom-activity-fields/25515>\
**Category:** Uncategorized\
**Created:** [18 December 2022 13:30 UTC](https://forum.intervals.icu/t/custom-activity-fields/25515 "2022-12-18T13:30:18Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![david](https://forum.intervals.icu/user_avatar/forum.intervals.icu/david/32/30189_2.png) [@david](https://forum.intervals.icu/u/david)\
**Post date:** [5 March 2025 15:21 UTC](https://forum.intervals.icu/t/custom-activity-fields/25515/23 "2025-03-05T15:21:23Z")

</div>

The default fields are all calculated in Java (very fast) whereas the custom ones are done in Javascript running in a sandbox (much slower but safe to run untrusted code). I can post Java fragments of specific things.

You can create custom interval fields to compute things for parts of an activity. These are also computed when you zoom on the timeline chart and displayed top left. So that might handle your “part of the activity” requirement.

> [@Custom interval fields](https://forum.intervals.icu/t/custom-interval-fields/25942):
>
> Intervals.icu now supports custom fields for intervals. You can enter the values manually (e.g. from a test of some kind) or compute them using JavaScript code. Click “Fields” on the activity timeline page and then “Add Field” to create a new field or search for an existing field: Note that the fields are specific to the athlete being edited. So if you are coaching people, create fields for yourself and then use the search button to add copies to your athl…

---

_[View the full topic](https://forum.intervals.icu/t/custom-activity-fields/25515)._
