Following the great examples from Andre de Vries here https://github.com/TheInformationLab/embed-alteryx-gallery-api
I've created a workflow app which has five input parameters, I've created an html page to pass the parms and can run the workflow app and it brings through the first question for me to pass data in.
However in the examples by Andre he has this section,
// Define a function to get the app Questions
var appInterface = function(workflowID, gallery) {
gallery.getAppQuestions(workflowID, function(questions){
// just getting the first question -- define a for loop if you want to grab all
// the description is the label of the interface tool
console.log(questions[0].description);
})
}
Not knowing much javascript I've tried all ways to create a loop to bring in all five questions but still can't get it to work anyone have any ideas ? Using the API interactive documentation page in the Gallery I can use the 'get questions' link to return all the questions but can't get this to work in the javascript loop in the example that Andre created.
[
{
"name": "Decor",
"type": "QuestionTextBox",
"description": "Decor",
"value": ""
},
{
"name": "Grade",
"type": "QuestionTextBox",
"description": "Grade",
"value": ""
},
{
"name": "Finish",
"type": "QuestionTextBox",
"description": "Finish",
"value": ""
},
{
"name": "Size",
"type": "QuestionTextBox",
"description": "Size",
"value": ""
},
{
"name": "Thickness",
"type": "QuestionTextBox",
"description": "Thickness",
"value": ""
}
]
Response Code
Thanks for any help.