Configure the server query
The server query is configured in an index file. Only users with the "WebFolder" authorisation can create a new index file for the survey.
- Go to the
Home tab and click on
Start job, then select the export job „WebApp_Feedback_V2_Export_00_Start“ to generate the .js files for the new feedback form. - Go to the
Configurations tab and select
Web >
Web Folder Administration, then open the folder
Feedback_V2 >
Templates. The export job has created a new JavaScript file with the name of the new survey in this folder.
Note: All template files must begin with the prefix "Feedback_Template_".
Example: Feedback_Template_Feedback_NewYearsEve.js - In the
Feedback_V2 folder, select the
HTML-file "Demo_Single-Language", click on
Save to hard drive in the toolbar and select a filing location. - Copy the file and Save it under a new name.
Example: Feedback_NewYearsEve.html - Open the new file in an editor.
- Replace the name of the oldJavaScript file with the name of the new JavaScript file in three places in the HTML file. The prefix remains the same, it is sufficient to replace the name of the new feedback.
Example: the old survey is called "Demo_Einsprachig", the new survey is called "Feedback_Silvesterball"- in line 44: document.getElementById("Language").setAttribute("data-bpWebApp-templateDataSrc", "templates/Feedback_Template_Feedback_NewYearsEve.js")
- in Zeile 48: document.getElementById("Sprache").setAttribute("data-bpWebApp-templateDataSrc", "templates/Feedback_Template_Feedback_NewYearsEve_"+lang+".js");
- in line 95: document.getElementById("Sprache").setAttribute("data-bpWebApp-templateDataSrc", "templates/Feedback_Template_Feedback_NewYearsEve_"+lang+".js");
- Replace the number of the logon ticket in three places in the HTML file (Create a web logon ticket):
- in line 45: data-bpWebApp-templateDataSrc="templates/Feedback_NewYearsEve.js" data-bpWebApp-queryString="&logon_ticket=D24CF964983443CC9C07DDF4E48695AB">
- in line 49: data-bpWebApp-templateDataSrc="templates/Feedback_NewYearsEve.js" data-bpWebApp-queryString="&logon_ticket=D24CF964983443CC9C07DDF4E48695AB"+lang)>
- in line 95: data-bpWebApp-templateDataSrc="templates/Feedback_NewYearsEve.js" data-bpWebApp-queryString="&logon_ticket=D24CF964983443CC9C07DDF4E48695AB"+lang)>
Save the new index file locally under the name "Feedback_NewYearsEve.html".- Click on
Add in the
Web Folder and select
Upload files, then select the new HTML file.
Confirm the new file and close the
Web Folder.