victusmgregorio Report post Posted 08/15/2011 05:58 PM I have a doubt in the validation, the need to validate that the User enters number 1 to 10, but if the User enter only a number it returns the message options, if they type in 10 for example the validation is OK, but if they type 1 for example he returns to the audio options. properties: Minimum entered number: 1 Maximum entered number: 2 VBScript: set vg = CreateObject("vgServices.CommandLink") iLen = Len("$RV_ENTEREDNUMBER") if iLen => 1 and iLen <3 then sResult = "sucesso" else sResult = "falha" end if vg.Run_ResultReturn $RV_LINEID, sResult set vg = Nothing The following script attached Thank you FaxRxDemoBVP_BVL_homolog.vgs Share this post Link to post
SupportTeam Report post Posted 08/16/2011 12:27 AM Instead of asking caller to enter from 1 to 10, can you ask them to enter from 0 to 9 ? This will let you respond quicker to caller's selections - and you can just use a Play module to get user response. Also no need to use any validation scripts in this approach. As soon as you allow caller to enter different length responses then you are setting up the script to detect the end of entered number by either timing out (interdigit timeout is 6 seconds by default) or by having caller press # at end of entered number. Both approaches make the use of system more complicated for callers. Note that you do not even need this type of validation anyway. The paths that you have later on: on {1} goto [ObtemCPF_CNPJ] on {2} goto [ObtemCPFCNPJContrato] on {3} goto [ObtemCPFCNPJContrato] on {4} goto [ObtemCPFCNPJContrato] on {5} goto [ObtemCPFCNPJContrato] on {6} goto [ObtemCPFCNPJContrato] on {7} goto [ObtemCPFCNPJContrato] on {8} goto [ObtemCPFCNPJContrato] on {9} goto [ObtemCPFCNPJContrato] on {10} goto [DigitaCNPJ] can be just used in the Get Numbers module itself. As to why the validation script is not working we would need to see the vgEngine trace, but please also see: http://www.voiceguide.com/vghelp/source/html/modgetnumber.htm, section Verify Entered Number Tab : an the value of sResult should be set within the script to be either "verify_passed" or "verify_failed". That way VoiceGuide will be informed whether the verification of the entered number passed or failed. . Share this post Link to post