Hi we are trying to implement the IVR. I have a question.
Is there any way that we can add questions from our side dynamically to a survo. Is there any API.
In our project we have requirements that changes depending on the user input. Some times they need to enter the values for two requirements, some times they need to enter values for three requirements. It is just not like entering 0,1,2,3,4. Some times there might be four requirements. I just cannot create survo for two requirements, new survo for three requirements.
Is there any way to add Survo Questions to the existing survo from our server side code.
So please help me in this.
Thanks,
Lakshmi.
-- Edited by lakshmi on Thursday 29th of December 2011 02:00:11 PM
You can not dynamically add or remove questions from a survo or change their question type from the api. You can however dynamically change the contents of that question.
One option is you have one single question survo and every time they answer a question (that you dynamically change) you keep sending them to the same survo (with different dynamically passed in questions) until you've asked them all the questions you have. The other option is to create a survo with 2 questions, 3 questions, etc. and you just select the survo with the amount of questions you need to ask (and dynamically change the question).
I hope that answers your question.
The second option might not help me because the requirements might change in the future.
The first option might help. Can you please elaborate.
Thanks,
Lakshmi.
If requirements ever change you can just add another survo, may be the simplest solution. Otherwise if you wanted to use just a one question survo multiple times you can use the pass through data to keep track of the caller and the answers he gave. Basically the survo would hit your page, your page would send the call back to the same survo putting the answer of their previous question(s), and whatever else you like, in the pass through data, and keep going back and forth between the survo and page continually adding to the pass through data until your page sees you have everything you need. Further details really depend on what you are trying to accomplish.
Hope this helps.
this depends on the language you are using. refer to the documentation for your language on retrieving an http post parameter. In php for example, one of the languages we use internally, it would be $something = $_POST['something'];