How to close a modal with a button?

janstaes01
5 Posts
janstaes01 posted this 06 May 2020
Ask a Question

Hi Again,

How can I close a modal with a button?
I added this (https://nicepage.com/questions/7162/popup-model) code in "Additional HTML Code" that Nicepage provided to show a modal when you click a button. It works great, but the modal can only be closed by clicking outside the modal, by pressing " Esc" or clicking " X" .

I need a close button on the modal. In the phone view the modal covers the full screen, so clicking outside the window isn't an option to close the modal. There's no " Esc" key on a phone to press. The " X" is the best option here, but I highly prefer a simple close button. What code do I have to add for this?

Hi Again, How can I close a modal with a button? I added this (https://nicepage.com/questions/7162/popup-model) code in "Additional HTML Code" that Nicepage provided to show a modal when you click a button. It works great, but the modal can only be closed by clicking outside the modal, by pressing " Esc" or clicking " X" . I need a close button on the modal. In the phone view the modal covers the full screen, so clicking outside the window isn't an option to close the modal. There's no " Esc" key on a phone to press. The " X" is the best option here, but I highly prefer a simple close button. What code do I have to add for this?
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 07 May 2020

Hi,

Unfortunately, this modal does not support adding additional buttons.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Unfortunately, this modal does not support adding additional buttons. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments