# Autopopulate discnumber field with first character of track

**URL:** <https://community.mp3tag.de/t/autopopulate-discnumber-field-with-first-character-of-track/59336>\
**Category:** Support\
**Created:** [December 8, 2022, 6:45pm UTC](https://community.mp3tag.de/t/autopopulate-discnumber-field-with-first-character-of-track/59336 "2022-12-08T18:45:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spinner410](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@spinner410](https://community.mp3tag.de/u/spinner410)\
**Post date:** [December 8, 2022, 6:45pm UTC](https://community.mp3tag.de/t/autopopulate-discnumber-field-with-first-character-of-track/59336/1 "2022-12-08T18:45:15Z")

</div>

Hi there - so, I'd like to take the first character of the track field (when applicable to my usage) and have that character populate the correlating discnumber field. For example, if the track field contains a value that is "A1", I would like have some sort of action that will automatically populate the discnumber field and set it's value to be "A".

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 8, 2022, 6:48pm UTC](https://community.mp3tag.de/t/autopopulate-discnumber-field-with-first-character-of-track/59336/2 "2022-12-08T18:48:31Z")

</div>

Try Convert\>Tag-Tag or an action of the type "Format value" for DISCNUMBER  
Format string: $left(%track%,1)

---

<div class="post-metadata">

**Author:** ![spinner410](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@spinner410](https://community.mp3tag.de/u/spinner410)\
**Post date:** [December 8, 2022, 6:51pm UTC](https://community.mp3tag.de/t/autopopulate-discnumber-field-with-first-character-of-track/59336/3 "2022-12-08T18:51:35Z")

</div>

> [@ohrenkino](#):
>
> DISCNUMBER  
> Format string: $left(%track%,1)

thank you - the action works perfectly. I appreciate your help with this 🙂

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [January 7, 2023, 6:51pm UTC](https://community.mp3tag.de/t/autopopulate-discnumber-field-with-first-character-of-track/59336/4 "2023-01-07T18:51:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
