Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
RWilliams92
Contributor II
Contributor II

Issues integrating an external survey into a Mashup

I'm wanting to insert a survey (built using surveyjs.io) into my mashup.

I have it working fine using Plunker but when copying this code across into the dev-hub environment it doesn't load / work.

Is there something I need to add to my code to get it to show in Qlik?

For reference this is the code i'm using:

index.html

<!DOCTYPE html>
<html>

<head>
<title>Compliance Questionnaire</title>



</head>

<body>
<div id="surveyElement">
</div>
<script src="./index.js"></script>
</body>

</html>

 

index.js

var json = {
"title": "TQP01 Compliance Questionnaire",
"pages": [{
"name": "page1",
"elements": [{
"type": "radiogroup",
"name": "Have all bank accounts been fully reconciled with all reconciling items agreed as appropriate?",
"title": "Have all bank accounts been fully reconciled with all reconciling items agreed as appropriate?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Have appropriate bank cut-off procedures been applied e.g. for direct debit receipts or payments?",
"title": "Have appropriate bank cut-off procedures been applied e.g. for direct debit receipts or payments?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "5M Euro Daily Threshold hasn’t been breached?",
"title": "5M Euro Daily Threshold hasn’t been breached?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Bank account linked to VGSL Profile?",
"title": "Bank account linked to VGSL Profile?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Mandate Signatories are in place and up to date?",
"title": "Mandate Signatories are in place and up to date?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Mandate Content is in complaince to treasury policy?",
"title": "Mandate Content is in complaince to treasury policy?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": " Payment Systems Review done annually?",
"title": " Payment Systems Review done annually?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Does the bank account have a nameless bank mandate?",
"title": "Does the bank account have a nameless bank mandate?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "question1",
"title": "Does the bank account have a named bank mandate?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Have you had a new starter within the last 12 months?",
"title": "Have you had a new starter within the last 12 months?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Has the new starter(s) completed TQP01 training?",
"visibleIf": "{Have you had a new starter within the last 12 months?} = \"Yes\"",
"title": "Has the new starter(s) completed TQP01 training?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "radiogroup",
"name": "Are there any instance of Bank accounts being closed in the last 12 months (or since the last compliance review if greater than 12 months)?",
"title": "Are there any instance of Bank accounts being closed in the last 12 months (or since the last compliance review if greater than 12 months)?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "comment",
"name": "Please provide evidence to demonstrate that Treasury were notified",
"visibleIf": "{Are there any instance of Bank accounts being closed in the last 12 months (or since the last compliance review if greater than 12 months)?} = \"Yes\"",
"isRequired": true
}, {
"type": "radiogroup",
"name": "Are there any instances of Bank accounts being opened in the last 12 months (or since the last compliance review if greater than 12 months)?",
"title": "Are there any instances of Bank accounts being opened in the last 12 months (or since the last compliance review if greater than 12 months)?",
"isRequired": true,
"choices": ["Yes", "No"]
}, {
"type": "comment",
"name": "Provide evidence that approval has been granted according to policy and Treasury notified.",
"visibleIf": "{Are there any instances of Bank accounts being opened in the last 12 months (or since the last compliance review if greater than 12 months)?} = \"Yes\"",
"isRequired": true
}]
}]
};
Survey.defaultBootstrapCss.navigationButton = "btn btn-primary";
Survey.Survey.cssType = "bootstrap";

var model = new Survey.Model(json);

$("#surveyElement").Survey({
model: model
});

0 Replies