In a Search action I have an optional input with validation.
action (MyAction) {
type (Search)
collect {
input (name) {
type (Name)
min (Optional)
iterable
validate {
if (!exists (name)) {
prompt {
dialog ("Write the name you want me to look up.")
}
}
}
}
} // end of collect
I expect a prompt for the input (if not given by user) to have display and spoken dialog like defined in the validation so "Write the name you want me to look up.".
Instead the display is the generic "I need a Name to continue" and the spoken dialog is both combined so "Write the name you want me to look up. I need a Name to continue".
I do not have any Dialog files.
Is this a bug or am I missing something?