Auto increment number fields

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ X ] Documentation issue or request

Current behavior

I’m not sure if it’s possible but i have a number field in my scheme that i would like to auto increment to the next available number.

I understand each database item has a unique reference, but my case I would like my products to have integer product ID’s.

Expected behavior

If this is possible it would be good to include it as part of the https://docs.squidex.io/02-documentation/concepts/schemas documentation

Minimal reproduction of the problem

Environment

App Name:

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ X ] Cloud version

Version: [latest]

Browser:

  • [ X ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

I managed to find the answer here:

You can use scripting for that: