For the native mobile app SDK survey, I added a custom end of survey message with a button to close the survey (in addition to the "x" on top that closes survey). I would like to hook up the action to close the survey on clicking the button. I know I can add an onClick to the button, but how do I trigger the survey to close from javascript?
Page 1 / 1
Hi @silvia_barboza,
what do you mean by closing the survey? Do you want to close the tab?
Quick Google search suggested me to use `window.top.close();`. It worked me, but I'd recommend to test it using multiple browsers and devices.
And in case you'd prefer to redirect users to another page, look here.
what do you mean by closing the survey? Do you want to close the tab?
Quick Google search suggested me to use `window.top.close();`. It worked me, but I'd recommend to test it using multiple browsers and devices.
And in case you'd prefer to redirect users to another page, look here.
Hi fleb,
I want to close the whole survey flow/end the survey and go back to the mobile app. I tried window.close() and does not close the window. This is a native mobile Qualtrics SDK for iOS and another native SDK for android. I'm assuming the survey is opened in an inappbrowser.
I want to close the whole survey flow/end the survey and go back to the mobile app. I tried window.close() and does not close the window. This is a native mobile Qualtrics SDK for iOS and another native SDK for android. I'm assuming the survey is opened in an inappbrowser.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.