Skip to main content
Solved

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

  • November 17, 2020
  • 2 replies
  • 222 views

m.sabadini

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?

 

 

Best answer by Luan de Araujo

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.

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

2 replies

Luan de Araujo
Pipefy Staff
Forum|alt.badge.img
  • Pipefy Staff
  • 5 replies
  • Answer
  • November 17, 2020

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.


m.sabadini
  • Author
  • Participating Frequently
  • 5 replies
  • November 18, 2020

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


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