How to combine two fields to generate UUID with Strapi?

System Information
  • Strapi Version: 3.6.1
  • Database: SQLite
  • Node Version: v14

I asked the question on Stackoverflow as well, but here it is :

With Strapi, you can set a UUID field base on the value of another field like : My Title becomes my-title

Now I would like to combine two field like this : My Title and My Reference becomes my-title-my-reference

Is it possible to do that with the interface or programmatically ? I looked into the models but I don’t know what can I change. Maybe in a middleware or something.

1 Like

This might take some workaround, but I would recommend having a look at the following video from Strapi: Auto generated field value - YouTube or this one Activity logs - YouTube
using the same method, I’m sure you will be able to update the field as you require.