How do you change the repeat bracket number above the measure? (Alternate Endings)

I want to repeat a section three times, starting at measure 4 and ending at measure 23. However, on the third repetition, I want to jump from measure 19 to measure 24. I know this is possible using repeat endings (the horizontal line with a number above the measure). Yet, the app doesn't let me change this number beyond the standard presets like 1 and 2. This is really frustrating for more complex musical pieces.

I’ve drawn my intended layout using red and green lines.