Expand my Community achievements bar.

SOLVED

How to store webApp survey responses into archived fields.

Avatar

Level 2

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.

  1.  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. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @_Manoj_Kumar_ ,

I had tried this option but when I do this, it stops saving responses into webAppLogRcpData schema as I connected page activity to Storage activity. However I have found a solution. I just replicated my TY page in end activity and it seems to be working fine. 

Thank you for your inputs!

 

View solution in original post

4 Replies

Avatar

Community Advisor

Hello @RajeshBhat 

 

This default content is available in the END activity used in the web page.


     Manoj
     Find me on LinkedIn

Avatar

Level 2

Hi @_Manoj_Kumar_ ,

Thanks for your reply! I found that in End activity. How can I stop moving to that page because I need to stay in the existing page itself where I'm hiding/unhiding based on the user input and displaying different messages as part of Thank You page. However I still need to save the responses to webAppLogRcpData on button click. 

 

Do you have any feedback on storing responses to archived field? I still don't see responses getting saved to this field when I pull this in Responses tab of webApp. 

 

TIA!

Avatar

Community Advisor

@RajeshBhat 

 

Open the page activity and go the properties tab.

 

Disable the checkbox which says Enable the outbound transitions

 

Manoj_Kumar__0-1713914298717.png

 


     Manoj
     Find me on LinkedIn

Avatar

Correct answer by
Level 2

Hi @_Manoj_Kumar_ ,

I had tried this option but when I do this, it stops saving responses into webAppLogRcpData schema as I connected page activity to Storage activity. However I have found a solution. I just replicated my TY page in end activity and it seems to be working fine. 

Thank you for your inputs!