How to store webApp survey responses into archived fields.
I have created a survey webApp with few questions which involves responses through radio button and checkbox input fields. I have created archived fields to store the responses. Now I'm facing couple of issues.
- The responses are not getting stored into archived fields.
I have below query to write response into an archived field "q1"
document.controller.setValue('/ctx/webAppLogRcpData/' + elementDataLabel, objectValue, elementDataLabel);
I'm seeing right values in all variables - elementDataLabel, objectValue
2. I was seeing a validate button at the bottom of the page getting added and the responses (recipient Id and timestamp) were getting logged in webAppLogRcpData only after clicking this button. Hence I disabled the next page in Page (v5 compatibility) activity and then called the function (document.controller.submit("submit")) which was present in validate button click on my final button click. Now after the submit instead of moving to the thank you page I see a different page which displays the message "Enter the content of the page here". It seems this is a default page which gets created when I use Page (v5 compatibility).
Appreciate any inputs to resolve these.
