Getting rid of modal-footer when using spModal

yundlu316
Kilo Guru

Our team is using spModal in Service Portal to pull up the ootb Form widget and am wondering if there's a way to get rid of the modal-footer:

find_real_file.png

I tried to add some css to make display none, but it doesn't work:

.modal-footer {display:none;}

Has anyone successfully modified the look of spModal?  Also, I know there will be suggestions for using uibModal, which we've used in the past.  However, we ran into several buggy things with uibModal in the past, such as the modal not closing when a form is submitted, the modal closing but then opening right away, etc.

1 ACCEPTED SOLUTION

Oleg
Mega Sage

Could you insert an example how you use spModal? If you use open method of spModal, then you can specify footerStyle option directly. For example, footerStyle: { display: "none" }. All other methods of spModal (alert, confirm, alertConfirm, prompt) are small wrapper of open method. Thus you can use open method instead of other methods.

If the above information not help, than you should post just more detailed information, which demonstrates your problem and I'm sure I'll help you.

View solution in original post

1 REPLY 1

Oleg
Mega Sage

Could you insert an example how you use spModal? If you use open method of spModal, then you can specify footerStyle option directly. For example, footerStyle: { display: "none" }. All other methods of spModal (alert, confirm, alertConfirm, prompt) are small wrapper of open method. Thus you can use open method instead of other methods.

If the above information not help, than you should post just more detailed information, which demonstrates your problem and I'm sure I'll help you.