We currently have hosted line features that have a field that represents calculated length ( in feet). We have turned on the ability for users to be able to update geometry to either cut or reshape a line segment. Is there any settings or scripts that allow fir the automatic updating of the field based on these changes?

For example, if someone was to cut this specific segment, I would like the field to update along with it. I did have an attribute rules set in Pro, but those do not carry over. So, are there any other ideas for hosted layers?