These are copied onto new activities and onto existing activities without a value for the field when they are analysed (like FTP and the other built in settings). This is useful for storing the results of lab tests etc..
You can use these values in calculations for other custom activity fields and streams, plot them over time on the /fitness page or just display them on activities.
How do you restrict custom fields to one specific sport in settings? For example, I only want “Hike” to have some custom fields.
Context:
I created custom fields to extend “hike” so i could add weight/ruck calculations as I wanted to better track and account for TSS beyond just cycling workouts. I got it to work so was pretty happy.
Issue - I created custom fields while clicked on Hike but they are on all sports in settings:
Today I completed a cycling workout with TSS of 72 and after my ride intervals showed my training load for that workout at 251
I immediately suspected this has to be apply weighted hike uplift to my 35KM ride.
I went into settings and sure enough, I see my custom fields below every sport. I thought these would just be specific Hike as I clicked on Hike and then created them.
Then I thought I must’ve selected the checkboxes to enable these by accident on Ride. Nope, they are all unchecked for Ride (and all other sports except Hike). So I must be completely misunderstanding their purpose and how to apply these checkboxes.
Issue - Deleting a custom field from “Ride” deleted it across all sports
Then I tried deleting a custom field “terrain” while I had “Ride” sport selected in settings.
I expected it to just delete from Ride. If so, I was then just going to delete all custom fields for all sports except Hike.
However, “Terrain” was deleted everywhere. So I’m kind of lost now (or maybe always was haha). Is there more specific documentation I can review? I’m fairly new to intervals so likely missing some fundamentals.
Custom activity and interval fields and custom streams are evaluated for all activities. As Pepe says you need to check the activity type in the script. You can’t use a return statement but can use break and a label for quick exit:
out: {
if (activity.type !== 'Hike') break out
...
}
You can control which fields are displayed per sport on the activity detail page and use them in the activity summary layout.
I’m talking ‘Custom activity field’.
That can be edited in the activity. But I haven’t used the ‘Copy’ function yet.
I would think that this copy function takes the value of the linked one?
Is it possible to make the field support which interval it was measured in, while still being a sport field(not interval field)?
For example, in my workout notes I write lactate xx.yy(zz) where the zz in the parantheses represent when I measured it. How can I acheive that with the field? Can I let it support the parantheses the same way?
Currently you would have to make lactate a string field to do that. Better to keep it numeric for plotting.. So you need to add another field to say what interval it was measured in or maybe just text “lactate notes” or something.
You should do that with Actions → Custom on the activity. No need to put these on the sport. The sport custom fields are for custom versions of things like “FTP” and so on that are changed occasionally and copied onto activities when they are analysed.
Thanks again. That’s great. One last questions. One thing I miss tracking is shoes. The reason I can’t track them is that I change shoes during a workout. This is very normal for runners, but currently gear tracking only supports one pair for the entire activity. Would it be possible to solve this with a interval field? Can I assign a pair of shoes to intervals with interval fields and count the mileage? Perhaps a dumb idea.
This is great. Could you show how you do this last step though?
You could then create custom activity fields which calculates the distance per shoe.
I need to know across activities of course. I want to click one pair of shoes and see their total mileage, if that makes sense. I don’t direclty need it to be linked to intervals, but rather which portion of the workout. I thought it would be easiest to just select intervals to acheive that.
So for a workout with 20 min warmup, 10x1k, then 10 min cd. Shoe 1 would append the distance from warmup and cool down and then shoe 2 10k from the 10x1k.
Considering this is how most runners does it I would assume it is a good idea to extend the gear functionality to support this @david?
Yes “multiple gear per activity” has been requested many times and will get done as part of a general gear upgrade (own tab, big grid view etc etc.). Lots of low hanging fruit there.