cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

169
Views
10
Helpful
6
Replies

How to execute an incorrect selection prompt?

Hello everyone, please help, I am generating this script for a survey, the question is how can I play a custom prompt when a person presses a key that is not enabled ?, attached script image, thanks.Survey.PNG

Everyone's tags (1)
2 ACCEPTED SOLUTIONS

Accepted Solutions
Beginner

Re: How to execute an incorrect selection prompt?

You can add a "Play Prompt" step in either of the two menu output branches for "Timeout" or "Unsuccessful."  However, the prompt will only play when the "Timeout" or "Maximum Retries" parameter is exceeded for the given case, as configured on the Input tab of the Menu step properties.  Changing Max Attempts from 3 (default) to zero removes additional retries on invalid entry of a non-selected filter item.

Anthony's method works as well, but only provides a single attempt for the response.  Without any additional scripting it does not provide an option to "retry" in the event the contact makes an errant response (a non-selected filter option--or invalid selection; again which results in the contact entering the Unsuccessful branch for the menu option). So if you have a requirement that states the contact to needs to be able to make additional attempts on an invalid entry, you will need to add some additional steps.

I like using a custom/combination of these two methods.  Like Anthony mentions, on the Input tab, set the Max Retries to zero. Add a 'loop and counter' type logic under the Unsuccessful branch, and give the contact the option to hear the Menu prompt repeated, or notify them a key-press is invalid/unvailable.  You can see in the image below, I placed separate Play Prompt steps within the output branches: "timeout" message and "invalid selection" message.  When the timeout, unsuccessful, or combination of the two options exceed the loop counter (iMaxLoopCount variable), the case exits the branch to the next set of steps.  You can do this for each menu, just remember to reset your loop counter--if you use the same variable.

2019-1202-unsuccessfulMenuEntry.png

There are probably more elegant ways of handling this, like creating separate loop variables for each (Timeout, and Unsuccessful...), but I don't want the caller to remain in the application for infinity...so I just reduce the logic to help them along, but still provide the opportunity to make a correction...

Hope this helps.

-Sean

 

View solution in original post

Highlighted
VIP Advisor

Re: How to execute an incorrect selection prompt?

Good additional comments Sean. Also, here's a little trick to get rid of the increment steps:

If (++iLoopCount < iMaxLoopCount)

Anthony Holloway

If you found this post helpful, please consider clicking that helpful button!

And for a limited time, by marking helpful posts, you're also helping Doctors Without Borders

View solution in original post

6 REPLIES 6
VIP Advisor

Re: How to execute an incorrect selection prompt?

In the menu, set the Retries to 0, then handle your invalid input in the Unsuccessful branch.

Anthony Holloway

If you found this post helpful, please consider clicking that helpful button!

And for a limited time, by marking helpful posts, you're also helping Doctors Without Borders
Beginner

Re: How to execute an incorrect selection prompt?

You can add a "Play Prompt" step in either of the two menu output branches for "Timeout" or "Unsuccessful."  However, the prompt will only play when the "Timeout" or "Maximum Retries" parameter is exceeded for the given case, as configured on the Input tab of the Menu step properties.  Changing Max Attempts from 3 (default) to zero removes additional retries on invalid entry of a non-selected filter item.

Anthony's method works as well, but only provides a single attempt for the response.  Without any additional scripting it does not provide an option to "retry" in the event the contact makes an errant response (a non-selected filter option--or invalid selection; again which results in the contact entering the Unsuccessful branch for the menu option). So if you have a requirement that states the contact to needs to be able to make additional attempts on an invalid entry, you will need to add some additional steps.

I like using a custom/combination of these two methods.  Like Anthony mentions, on the Input tab, set the Max Retries to zero. Add a 'loop and counter' type logic under the Unsuccessful branch, and give the contact the option to hear the Menu prompt repeated, or notify them a key-press is invalid/unvailable.  You can see in the image below, I placed separate Play Prompt steps within the output branches: "timeout" message and "invalid selection" message.  When the timeout, unsuccessful, or combination of the two options exceed the loop counter (iMaxLoopCount variable), the case exits the branch to the next set of steps.  You can do this for each menu, just remember to reset your loop counter--if you use the same variable.

2019-1202-unsuccessfulMenuEntry.png

There are probably more elegant ways of handling this, like creating separate loop variables for each (Timeout, and Unsuccessful...), but I don't want the caller to remain in the application for infinity...so I just reduce the logic to help them along, but still provide the opportunity to make a correction...

Hope this helps.

-Sean

 

View solution in original post

Highlighted
VIP Advisor

Re: How to execute an incorrect selection prompt?

Good additional comments Sean. Also, here's a little trick to get rid of the increment steps:

If (++iLoopCount < iMaxLoopCount)

Anthony Holloway

If you found this post helpful, please consider clicking that helpful button!

And for a limited time, by marking helpful posts, you're also helping Doctors Without Borders

View solution in original post

Re: How to execute an incorrect selection prompt?

Thank you very much, everything has been a great help, regards.

Beginner

Re: How to execute an incorrect selection prompt?

Thanks for the additional tip--VERY useful!!

Thanks!

-Sean

Re: How to execute an incorrect selection prompt?

Thanks.

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here