0
I have a function abreModal()
where, I use the call SP.UI.ModalDialog.showModalDialog
to open a Sharepoint modal where the content is a Newform url (Sharepoint registration page).
I would like to know if, after this function is executed, I can modify the content of what to open in Modal (only while the modal is open). For example:
would like to give a style.display = 'none'
in an element of this form, except that I CANNOT do a "condition" or anything of the kind in the Newform file. It would have to be for the file that the modal opens...
Follows the function:
inserirAusencia: function() {
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', { url: "https://minhaurl.sharepoint.com/NewForm.aspx?"});
//aqui quero fazer o style.display = "none" em um componente que existe na modal
}