Answers.Body: <p>I think you'll need to implement this with the <code>Elements::EVENT_AFTER_SAVE_ELEMENT</code> event and keep a record of the number.</p>
  <p>If it doesn't need to be sequential 1,2,3 you could use a dynamic title and use {{object.sourceId}} which would be the entry id which will always increment</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-22T11:14:01.037Z
Answers.Text: Yeah, this. I wondered about using something like {craft.entries.section('pages')|length} in the Title Format field, but that would update the number to the total length every time you updated the entry. You may still run into problems with the user being able to change the number when they edit the page.
Answers.UserDisplayName: darylknight
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-22T10:52:14.907Z
Answers.LastActivityDate: 2020-06-23T12:15:57.183Z
Answers.LastEditDate: 2020-06-23T12:15:57.183Z
Answers.UserDisplayName: Leevi Graham
Body: <p>I have a channel where I need each entry's Title include a sequential number, like this: 10003 - Entry Title</p>
  <p>Is there a way to prepend a sequential number to the entry title?</p>
  
Tags: <entry><titles>
Title: Use sequential numbers for entry title
ThreadText: # Use sequential numbers for entry title
  
  (Asked by: username_0 on 2020-06-22)
  
  I have a channel where I need each entry's Title include a sequential number, like this: 10003 - Entry Title
  
  Is there a way to prepend a sequential number to the entry title?
  
  **Tags:** entry, titles
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-06-22. Score: 1
  
  I think you'll need to implement this with the `Elements::EVENT_AFTER_SAVE_ELEMENT` event and keep a record of the number.
  
  If it doesn't need to be sequential 1,2,3 you could use a dynamic title and use {{object.sourceId}} which would be the entry id which will always increment
  
  > **Comments:**
  > **username_2**: Yeah, this. I wondered about using something like {craft.entries.section('pages')|length} in the Title Format field, but that would update the number to the total length every time you updated the entry. You may still run into problems with the user being able to change the number when they edit the page.  
  
  ---
  
  