You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When creating a custom option, I sometimes want users to be able to specify an arbitrary Spell. However, there's no option to support data validation, leading to invalid inputs (or requiring me to implement my own data validation).
Describe the solution you'd like
Inside of basic Spell and Aura triggers, there is data validation on the spell fields. If you enter an invalid spell, the field will not validate and not allow entry.
I'd like a similar field option in Custom options, so I can specify an arbitrary spell input (either by name or by exact id, or Id-In-Name-Field for localization validation), and have the field validate and only allow valid entries.
Describe alternatives you've considered
A basic string or number input for name or ID, along with custom data validation in Init code (which doesn't prevent the user from entering the data, it can only notify them that it's invalid via Print prompts and not use the data).
Additional context
I'd like an option type that allows input similar to this (Screenshot from a basic Aura trigger)
If I enter an invalid spell ID, the field doesn't accept the value and the field is cleared. This behavior is what I'd like to see in a custom option.
For example, if creating a spell Id exclusion list.
Alternatively, add a sub-option to the String custom option type for a set of preset types of data validation (Spell is the only type of preset data validation I can think of, I figure that a custom type of data validation is perhaps a bit much to implement (but food for thought)).
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When creating a custom option, I sometimes want users to be able to specify an arbitrary Spell. However, there's no option to support data validation, leading to invalid inputs (or requiring me to implement my own data validation).
Describe the solution you'd like
Inside of basic Spell and Aura triggers, there is data validation on the spell fields. If you enter an invalid spell, the field will not validate and not allow entry.
I'd like a similar field option in Custom options, so I can specify an arbitrary spell input (either by name or by exact id, or Id-In-Name-Field for localization validation), and have the field validate and only allow valid entries.
Describe alternatives you've considered
A basic string or number input for name or ID, along with custom data validation in Init code (which doesn't prevent the user from entering the data, it can only notify them that it's invalid via Print prompts and not use the data).
Additional context

I'd like an option type that allows input similar to this (Screenshot from a basic Aura trigger)
If I enter an invalid spell ID, the field doesn't accept the value and the field is cleared. This behavior is what I'd like to see in a custom option.
For example, if creating a spell Id exclusion list.

Alternatively, add a sub-option to the String custom option type for a set of preset types of data validation (Spell is the only type of preset data validation I can think of, I figure that a custom type of data validation is perhaps a bit much to implement (but food for thought)).
The text was updated successfully, but these errors were encountered: