Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Answers Validation


Member

Status: Offline
Posts: 18
Date: Nov 16, 2009
Answers Validation
Permalink   
 


Hello ,

I am using servo through my application . I want to validate answers which given by users , these answers are correct or not. Suppose i have sent this action to ifbyphone server
"<action><app>servo</app><parameters><id>xxxxx</id><user_parameters><question>Press 1 for Hospital1 , Press 2 for Hospital2</question></user_parameters><p_t>1|Dr. A||2|Dr. B||3|Dr. C</p_t></parameters></action>"

and Ifbyphone server  read Questions ....Press 1 for Hospital1 , Press 2 for Hospital2

If user press 1 or 2 then next action is proceed.
If user press except 1or 2 suppose 3,4,5...... then i want validate i.e. this is wrong entry. I want to give a message("You have entered number is not Correct") to the user.

How can i do it ? Please Give me right solution as soon as possible.

__________________
gufran


Veteran Member

Status: Offline
Posts: 59
Date: Nov 16, 2009
Permalink   
 

Gufran -

Make sure you get the pass-through data back.  In your logic, compare the user's input to the pass through data.  If there is a match, you can proceed with the call.  If a user puts in 5, and there were only options for 1,2 and 3, then you redirect them to a copy of your original survo that says "I"m sorry, that input was not correct.  Please try again"



__________________


Member

Status: Offline
Posts: 18
Date: Nov 17, 2009
Permalink   
 

I tried same as you said, created another copy of original survo that says "I"m sorry, that input was not correct. Please try again", I changed logic so that if I put 5 then redirected it to new survo, but still I am getting same problem listening question 'Please enter your phone number'.If I put in 5, and there were only options for 1,2,3 and 4, then it not redirecting immediately to orginal copy of survo.
Please give response and guide me as soon as possible

__________________
gufran


Veteran Member

Status: Offline
Posts: 45
Date: Nov 17, 2009
Permalink   
 

Can you please share your account ID so we can look at the setup in your account?

__________________
-Phil Seguin
pseguin@ifbyphone.com
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard