Skip to main content
Answered

Canvas Kit App button is clickable by teammates if app button is url type. Is there a way to prevent this?

  • July 14, 2022
  • 1 reply
  • 33 views

I am working on making a canvas kit app. In experimenting with button types, I have found that the url button types are clickable both by the chat user and the teammate responding to the chat. Compare this to an app with a submit button, which is greyed out on the teammate side and is not clickable. Is there a way to prevent a url type button from being clicked by the teammate? (In our use case, we want the url button to be a feedback survey, but we only want the chat user to be able to access the button, not the teammate).

 

Alternatively, is there a way to redirect to a url from a submit type button? I experimented a little with having the server respond to the submit webhook with a redirect status (such as 301 or 307) but this has not worked.

 

Thanks in advance for any help or workarounds.

 

Image: chat on the right shows the teammate view, where the url button is clickable and the submit button is greyed out.

 

image showing url type buttons are clickable by teammates but submit buttons are not

Best answer by Aparna

Hey @brandon t12​ ! It is not possible to redirect from submit. The docs suggest that you can toggle the "disabled" attribute for a button with true/false https://developers.intercom.com/canvas-kit-reference/reference/button. Hope this helps!

View original
Did this topic help you find an answer to your question?

1 reply

  • Employee
  • 328 replies
  • Answer
  • July 19, 2022

Hey @brandon t12​ ! It is not possible to redirect from submit. The docs suggest that you can toggle the "disabled" attribute for a button with true/false https://developers.intercom.com/canvas-kit-reference/reference/button. Hope this helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings