Skip to main content

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. 

  1. Go to the Basis Home tab and click on Job Start job, then select the export job „WebApp_Feedback_V2_Export_00_Start“ to generate the .js files for the new feedback form.
  2. Go to the Einrichtung Configurations tab and select Html Web > Web Ordner Web Folder Administration, then open the folder Ordner Bestellung Feedback_V2 >Ordner Bestellung  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
  3. In the Ordner Bestellung Feedback_V2 folder, select the Web Logon Ticket HTML-file "Demo_Single-Language", click on export festplatte Save to hard drive in the toolbar and select a filing location.
  4. Copy the file and Save it under a new name.
    Example: Feedback_NewYearsEve.html
  5. Open the new file in an editor.
  6. 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" 
    1. in line 44: document.getElementById("Language").setAttribute("data-bpWebApp-templateDataSrc", "templates/Feedback_Template_Feedback_NewYearsEve.js")
    2. in Zeile 48: document.getElementById("Sprache").setAttribute("data-bpWebApp-templateDataSrc", "templates/Feedback_Template_Feedback_NewYearsEve_"+lang+".js");
    3. in line 95: document.getElementById("Sprache").setAttribute("data-bpWebApp-templateDataSrc", "templates/Feedback_Template_Feedback_NewYearsEve_"+lang+".js");
  7. Replace the number of the logon ticket in three places in the HTML file (Create a web logon ticket):
    1. in line 45: data-bpWebApp-templateDataSrc="templates/Feedback_NewYearsEve.js" data-bpWebApp-queryString="&logon_ticket=D24CF964983443CC9C07DDF4E48695AB">
    2. in line 49: data-bpWebApp-templateDataSrc="templates/Feedback_NewYearsEve.js" data-bpWebApp-queryString="&logon_ticket=D24CF964983443CC9C07DDF4E48695AB"+lang)>
    3. in line 95: data-bpWebApp-templateDataSrc="templates/Feedback_NewYearsEve.js" data-bpWebApp-queryString="&logon_ticket=D24CF964983443CC9C07DDF4E48695AB"+lang)>
  8. save Save the new index file locally under the name "Feedback_NewYearsEve.html".
  9. Click on neu Add in the Ordner Bestellung Web Folder and select import festplatte Upload files, then select the new HTML file.
  10. ok Confirm the new file and close the Ordner Bestellung Web Folder.