Answers.Body: <p>Lindsey's answer is correct when outputting to a template, however, from within the title field of an Entry Type you would use the following:</p>
  
  <pre><code>{songTitle} - {performedWith.first.title}
  </code></pre>
  
  <p><code>entry</code> is not needed, and only need single brackets.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-31T23:08:51.220Z
Answers.Text: Ahhh, "title format"... somehow I completely missed that!
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-31T22:54:53.867Z
Answers.LastActivityDate: 2014-12-31T22:54:53.867Z
Answers.UserDisplayName: Douglas McDonald
Answers.Body: <p>If <code>performedWith</code> is a simple relationship field to another entry, then try it like this:</p>
  
  <pre><code>{{ entry.performedWith.first.title }}
  </code></pre>
  
  <p>Then you're getting the <code>title</code> from the <code>first</code> entry listed in your <code>performedWith</code> field.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-29T20:51:31.913Z
Answers.Text: Thank you for the reply. It is indeed a simple relationship field, but even when using the first parameter, it is coming back blank. So it looks like:
  
  {songTitle} -
  
  The artist name *should* be listed after the -.
Answers.UserDisplayName: Jeremiah
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-29T20:54:12.507Z
Answers.Text: Oops, caught a typo... Updated my answer, try that.
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-29T20:56:38.670Z
Answers.Text: Still no dice. :(
Answers.UserDisplayName: Jeremiah
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-29T21:06:30.200Z
Answers.Text: Couple questions... Are you on a normal `entry` page? And do you have the site running in [`devMode`](http://buildwithcraft.com/help/dev-mode)? If the site is running in `devMode`, you can use [`{{ dump() }}`](http://twig.sensiolabs.org/doc/functions/dump.html) to find out what your variables contain.
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-29T21:09:50.480Z
Answers.Text: Using `dump`, you should be able to determine that (1) `entry` is an EntryModel, (2) `entry.performedWith` is an ElementCriteriaModel, (3) `entry.performedWith.first` is another EntryModel, and (4) `entry.performedWith.first.title` is a string... specifically, the string which you are trying to display. If for some reason that's not the architecture of those fields (or if some other error is popping up), then simply being in `devMode` should shed a little light on the problem.
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-30T02:51:49.347Z
Answers.Text: Finding this one a bit more difficult to debug, as the code is in the Title field itself of the section, not in a template. Guess this one is something I will come back to as I get a bit further with the rest of the site. Will be sure to post back when I figure it out.
Answers.UserDisplayName: Jeremiah
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-31T22:45:10.233Z
Answers.Text: try `{songTitle} - {performedWith.first.title}`
Answers.UserDisplayName: Douglas McDonald
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-31T23:11:48.767Z
Answers.Text: My bad, I led you in the wrong direction... Somehow I completely missed the fact that your question was asking about the Title Format. Thanks @DouglasMcDonald for [setting me straight](http://craftcms.stackexchange.com/a/5441/45)! :)
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-29T20:45:53.117Z
Answers.LastActivityDate: 2014-12-29T20:53:49.113Z
Answers.LastEditDate: 2014-12-29T20:53:49.113Z
Answers.UserDisplayName: Lindsey D
Body: <p>Finally hopping back into Craft to finish a large project, and am loving so many of the new features added! One thing I am using extensively is the Title Format feature. For one of my entry types, my Title Format field looks like so:</p>
  
  <pre><code>{songTitle} - {{ performedWith.entry.title }}
  </code></pre>
  
  <p>performedWith is the name of a field that links to an entry. I assumed I could do entry.title to pull the title from the linked entry, but it is simply showing up blank. Any ideas? Thanks!</p>
  
Tags: <entry><titles>
Title: Title Format - Auto Generation via linked entry
ThreadText: # Title Format - Auto Generation via linked entry
  
  (Asked by: username_0 on 2014-12-29)
  
  Finally hopping back into Craft to finish a large project, and am loving so many of the new features added! One thing I am using extensively is the Title Format feature. For one of my entry types, my Title Format field looks like so:
  
  ```
  {songTitle} - {{ performedWith.entry.title }}
  
  ```
  
  performedWith is the name of a field that links to an entry. I assumed I could do entry.title to pull the title from the linked entry, but it is simply showing up blank. Any ideas? Thanks!
  
  **Tags:** entry, titles
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2014-12-31. Score: 5
  
  username_2's answer is correct when outputting to a template, however, from within the title field of an Entry Type you would use the following:
  
  ```
  {songTitle} - {performedWith.first.title}
  
  ```
  
  `entry` is not needed, and only need single brackets.
  
  > **Comments:**
  > **username_2**: Ahhh, "title format"... somehow I completely missed that!  
  
  ---
  
  ### Answer by username_2 on 2014-12-29. Score: 1
  
  If `performedWith` is a simple relationship field to another entry, then try it like this:
  
  ```
  {{ entry.performedWith.first.title }}
  
  ```
  
  Then you're getting the `title` from the `first` entry listed in your `performedWith` field.
  
  > **Comments:**
  > **username_0**: Thank you for the reply. It is indeed a simple relationship field, but even when using the first parameter, it is coming back blank. So it looks like:  {songTitle} -  The artist name *should* be listed after the -.  
  > **username_2**: Oops, caught a typo... Updated my answer, try that.  
  > **username_0**: Still no dice. :(  
  > **username_2**: Couple questions... Are you on a normal `entry` page? And do you have the site running in [`devMode`](http://buildwithcraft.com/help/dev-mode)? If the site is running in `devMode`, you can use [`{{ dump() }}`](http://twig.sensiolabs.org/doc/functions/dump.html) to find out what your variables contain.  
  > **username_2**: Using `dump`, you should be able to determine that (1) `entry` is an EntryModel, (2) `entry.performedWith` is an ElementCriteriaModel, (3) `entry.performedWith.first` is another EntryModel, and (4) `entry.performedWith.first.title` is a string... specifically, the string which you are trying to display. If for some reason that's not the architecture of those fields (or if some other error is popping up), then simply being in `devMode` should shed a little light on the problem.  
  > **username_0**: Finding this one a bit more difficult to debug, as the code is in the Title field itself of the section, not in a template. Guess this one is something I will come back to as I get a bit further with the rest of the site. Will be sure to post back when I figure it out.  
  > **username_1**: try `{songTitle} - {performedWith.first.title}`  
  > **username_2**: My bad, I led you in the wrong direction... Somehow I completely missed the fact that your question was asking about the Title Format. Thanks @username_1 for [setting me straight](http://craftcms.stackexchange.com/a/5441/45)! :)  
  
  ---
  
  