Update fields of subpage after moving

hello.

when i create a subpage (‘exercise’) in a category i record the parent page’s (category) name and uuid into the exercise’s fields:

exercise.yml

               category:
                    type: hidden
                    default: "{{ page.parent.title }}"
               category_id:
                    type: hidden
                    default: "{{ page.parent.uuid.id }}"

when i use the new “move” feature and move the exercise to another category these fields dont get updated.

any hint how to best get the exercise’s field automatically updated very much appreciated.

tnx
and regards
fusi

May I ask why you’re doing that?