I try to make contracts have serial names

In fact, I tried and tried to apply some of the results I got but failed with me

like this :

I tried to add a custom field but could not find its type and how it can be linked with the Naming Series