Is there any way to change the CSS of div which appear after in D365 marketing form submission? DIV looks below which comes with default height and width. We just need to remove this.
<div class="onFormSubmittedFeedback" style="height: 442px; width: 1169px;">
You can create a javascript hook, react on form submit event and do this via javascript
<script>
MsCrmMkt.MsCrmFormLoader
.on("afterFormSubmit", function(event) {
const elements = document.getElementsByClassName("onFormSubmittedFeedback");
for (let i = 0; i < elements.length; i++) {
elements[i].style.height = "auto";
elements[i].style.width = "auto";
}
})
</script>