VoiceGuide IVR Software Main Page
Jump to content

Setting Digit Eats Leading Zero's

Recommended Posts

Hi,

 

I am having a perticular problem.

 

<GET_4_DIGIT_PASSCODE>0101</GET_4_DIGIT_PASSCODE><SET_PASSCODE_Input>0101</SET_PASSCODE_Input><SET_PASSCODE>101</SET_PASSCODE><UsrPhone_PinNo>101</UsrPhone_PinNo>

 

If you see above when I am assigining the value taken as input from the user in a variable, it eats up leading zero.

 

This is confusig me a lot. Please assist me. I need full 0101 as string assigned to variable UsrPhone_PinNo.

 

 

Script code for references:

[GET_4_DIGIT_PASSCODE]

Type=Get Numbers

DispSize=24

Txt=

PlayFile1=4DigitPassCode.wav

Replay=3,5

GetNbrLen_Min=4

GetNbrLen_Max=4

Confirm=ON

VbScript=

VbsHoldPlay=

on {timeout 15} goto [CHECK_COUNT]

on {fail} goto [CHECK_COUNT]

on {success} goto [sET_PASSCODE]

 

Position=288,486

 

 

[sET_PASSCODE]

Type=Evaluate

DispSize=24

Txt=

Expression=$RV[GET_4_DIGIT_PASSCODE]

ExprNewRV=UsrPhone_PinNo

ExprStoreRV=1

ExprStoreInGlobalRV=0

on {true} goto [uPDATE_USRPHONE]

on {false} goto [uPDATE_USRPHONE]

 

Position=628,296

Share this post


Link to post

Use:

 

"$RV[GET_4_DIGIT_PASSCODE]"

 

instead of just

 

$RV[GET_4_DIGIT_PASSCODE]

 

in your Evaluate Expression module. Then the input will be treated as a string and the leading zero retained.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×