Hi , I have embedded a survey link to a button and the survey is sent to the user in messenger . The survey loads inside the messenger as an iframe and the user takes up the survey | Community
Skip to main content
Answered

Hi , I have embedded a survey link to a button and the survey is sent to the user in messenger . The survey loads inside the messenger as an iframe and the user takes up the survey

  • Oct 16, 2020 7:28 PM UTC
  • 3 replies
  • 73 views

How do i know when the survey is completed by the user so that I can return a "Thanks for responding" canvas component . How should i close the loaded iframe. ?

Best answer by Anonymous

Hey @user394​ - sounds like this is in a Sheet. You can follow the https://developers.intercom.com/building-apps/docs/canvas-kit#section-submit-sheet-request"alt="http://https://developers.intercom.com/building-apps/docs/canvas-kit#section-submit-sheet-request"target="_blank">'Submit Sheet' flow to do this 👍

View original

3 replies

  • Author
  • New Participant
  • Oct 16, 2020 7:29 PM UTC

Hi @Zach Read​  Can you provide some insights on this?


Roy
Top Expert ✨
Forum|alt.badge.img+7
  • Top Expert ✨
  • Oct 17, 2020 1:20 AM UTC

Hello @user394​ , I think you should use: https://developers.intercom.com/building-apps/docs/canvas-kit#section-submit-response

 

"You can optionally provide an event object with the attribute type given as completed to tell us if the app has completed its purpose. "


  • Answer
  • Oct 19, 2020 9:49 AM UTC