I have an entity (say, an event) the user needs to create periodically.
In its attributes, the user needs to enter a range in a text field that is a technical specification (complex). The user will enter different values for different events, but those will have a tendency to repeat.
For example: say they create one with
1, 2-3 on Monday,
4-5, 6, 7 on Tuesday, and so on. Come next Monday, they would find it fitting to have
1, 2-3 again. But remembering the exact sequence and re-typing it every week would be a hassle. So we'd like to save that to a preset they can name and reuse. (Without a preset, what would most likely happen would be that they would keep a sheet nearby with those written for reference, and type them back every time.)
I would assume in most cases the same codes come back pretty regularly, but we cannot make that assumption systematic.
On the other hand, I don't want to oblige the user to go back to another place to manage those presets and create one even before they can create their event.
Most often when using this dialog, the user would be selecting a preset. Only in their first uses or when making a change would they need to enter a "new preset".
I'm looking for a way for them to either enter a new code or select a preset without switching contexts.
I'm thinking the pattern of using a preset or making a new one without switching contexts is pretty common. Does this have a name? What would be a good UI pattern for this?