Placeholder for generated UUID

Hello,

I’m using a default value to generate the UUID (defaultValue:DataTypes.UUIDV4) but when I create a new item, the placeholder is empty on the form.

I understand that the UUID is generated afterward when I submit the form. So, is it possible to hide the ID field in the creation form or tho have a generated ID in the placeholder ?

  id: {
      type: DataTypes.UUID,
      primaryKey: true,
      defaultValue:DataTypes.UUIDV4
    },
1 Like

Hey @gaelperon,

It’s very much possible to hide the id:

  1. Open the create form by clicking on the Add button
  2. Switch the Layout Editor on (:paintbrush: icon)
  3. Open the burger menu and choose what fields to hide/display and in which order they should appear

Cheers,