Welcome to the Ifbyphone Developers zone. This forum provides a place for the community of advanced Ifbyphone users and developers to share ideas, exchange code, and ask questions.  

Additional Resources

Ifbyphone Company Blog - Ifbyphone Twitter Page - Ifbyphone Company Web Site - Ifbyphone Partners Page
Ifbyphone's CEO's (Irv Shapiro's) Personal Blog - Irv Shapiro Twitter Page

It has been brought to our attention that the NEW MEMBER link does not always display in IE7. If you do not see the new member link in the login box on the right, please try another browser. (Firefox works fine.) In addition please note that Phonemashup accounts are completely separate from Ifbyphone accounts.

If you need help fast, call 877 295 5100 to reach the Ifbyphone "Success Team".   (Support is option 2.)

Members Login
Username 
 
Password 
    Remember Me  
Chatbox
Please log in to join the chat!
Post Info TOPIC: Answers Validation


Member

Status: Offline
Posts: 15
Date: Nov 16, 2009
Answers Validation
  
 


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: 58
Date: Nov 16, 2009
  
 

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: 15
Date: Nov 17, 2009
  
 

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
  
 

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 Facebook Post to Digg Post to Del.icio.us

This is an open and public forum so Ifbyphone is unable to ensure that all code and suggestions posted to this forum are correct. Please use all code posted here at your own risk. Ifbyphone assumes no liability for code, recommendations and suggestions posted to this forum.

Users and developers will find hundreds of useful posts at the Ifbyphone company blog.