Solved

APPS - How to show a modal with 'card-buttons'

  • 17 November 2020
  • 2 replies
  • 176 views

Userlevel 3

Hi,

I am creating an APP to show some information inside a modal. My idea is: Create a button, when clicked I will show the modal with an URL content. Not a big deal accordingo to the documentation https://developers.pipefy.com/docs/card-buttons.
I`m using glitch.com as server side and I wrote a HTML ‘hello world’. 

 

index.html

'card-buttons': function(p, pipe) {
return [
{
icon: './images/icon-blue.svg',
text: 'Advogado',
callback: function(p) {
p.modal({
url: './modal.html',
height: '50%',
width: '50%',
});
},
}
}

 

Modal loading

 

 

Modal response code 200

 

 

Modal iframe content

 

My problem is: The modal keep loading forever. When I inspect the network traffic I can see the response code 200 and the ‘hello world’ content inside the iframe, as expected! but the modal keep loading and does not show the iframe content.

Any idea guys?

 

 

icon

Best answer by Luan de Araujo 17 November 2020, 20:06

View original

2 replies

Userlevel 2
Badge

Hi Sabadini, how are you doing today?

 

We are investigating this issue with you through the support channels and we will update the solution in this thread as soon as we can get a conclusive analysis.

 

If there’s any additional doubt, don’t hesitate to contact me.

 

Thanks.

Userlevel 3

Thank you Luan. Cant wait to see this feature working 🤘🏻

Reply