We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Plum Survey - Sub Dialogs and Data within VXML

Questions and answers about Plum Survey

Moderators: admin, support

Post Reply
rm_plumsurvey
Posts: 8
Joined: Fri Dec 10, 2010 11:28 am

Plum Survey - Sub Dialogs and Data within VXML

Post by rm_plumsurvey »

Hi

We have a sub dialog that successfully calls our web service .The web service returns a prompt back to the survey (the prompt contains some address information). We want this address data to be part of the data file that comes out of the survey, how can we implement this step in Plum Survey

In additoin, when we review the header of the data file, it contains the entire prompt which is lengthy. Can the prompt titles have a short names that can be used as part of the header ? I like to keep the full prompt on the survey so its easy for a human to read and understand the working logic.

Please advise available options on both issuse

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Plum Survey - Sub Dialogs and Data within VXML

Post by support »

Hi,

To answer your first question: in order to store the data returned by your web service in the data file that comes out of the survey, you will need to return that data as a string value from your subdialog. In a subdialog type question, whatever is returned by your subdialog is automatically stored as the answer to that question. For more information on the subdialog type question, you can take a look at our survey questions documentation here.

For your second question, the header of the data file will always be set to the entire prompt title. One way you could work around this would be to set a shorter prompt title in your survey, and then record audio to be used for that prompt. That way, your users would hear the full prompt title (whatever you had recorded), but your data file would contain the shorter title that you had written.

Hopefully this helps!

Regards,
Plum Support

rm_plumsurvey
Posts: 8
Joined: Fri Dec 10, 2010 11:28 am

Re: Plum Survey - Sub Dialogs and Data within VXML

Post by rm_plumsurvey »

We are having trouble as to which attribute to use to return the string. We tried a few things and its not working. Below is our current VXML being returned. We are using the return value of 1 or 0 to drive the skip logic of what is returned. But we also want to return an additional string value for the data to be attached in the excel file. Please advise...

The string we want to return to the CSV file is a variable - strLastName & strAddress1 & strAddress2 & strCity & strState & strZip. We tried


<?xml version=""1.0"" encoding=""UTF-8""?>
<!-- SURVEY APP SAMPLE SUBDIALOG This is a sample subdialog for use with a 'subdialog (phone only)' question in a survey. (c) 2008 Plum Voice --> <vxml version=""2.0"">
<form>
<block>
<prompt>We have located your address. The last name for this address is " & strLastname & ". The address is " & strAddress1 & " " & strAddress2 & " " & strCity & " " & strState & " " & strZip & ".</prompt>
<var name=""result"" expr=""'1'""/>
<return namelist=""result""/>

</block>
</form>
</vxml>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Plum Survey - Sub Dialogs and Data within VXML

Post by support »

Hi,

Sorry, but this implementation is not possible. Our subdialog documentation mentions the following:

"The subdialog you provide should return one variable called result, which will be stored as a string value for the question's answer. You are able to add choices to subdialog questions and add skip logic for each choice. The result for the subdialog will not be constrained to the data values for your choices. However, if there is a choice with a data value that corresponds to the returned result, its skip logic (if any) will be followed."

Since you are using this subdialog already to return a value of 0 or 1 to drive your skip logic, you cannot use the same subdialog to return the string value that you want to insert in your CSV file. We suggest that you set up two subdialog questions for that page, one to return the string to insert in your CSV file and one to drive the skip logic of what is returned.

Regards,
Plum Support

Post Reply