Skip to main content

Notifications

Customer Insights - Journeys forum
Unanswered

Changing Thank you message DIV CSS

editSubscribe (0) ShareShare
ReportReport
Posted on by 14
Is there any way to change the CSS of div which appear after 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;//>
 
  • Khan zain Profile Picture
    Khan zain 1 on at
    Changing Thank you message DIV CSS
    To customize the CSS of a `<div>` that appears after form submission, you can use JavaScript to target the element and modify its styles. Here's a concise solution:
     
    // Wait for the document to be ready
    document.addEventListener('DOMContentLoaded', function() {
        // Find the div with the class 'onFormSubmittedFeedback'
        var feedbackDiv = document.querySelector('.onFormSubmittedFeedback');
        
        // Check if the div exists
        if (feedbackDiv) {
            // Remove inline styles (height and width)
            feedbackDiv.style.height = 'auto';
            feedbackDiv.style.width = 'auto';
            // You can also add other CSS styles as needed
        }
    });
    This script will remove the inline `height` and `width` styles from the `<div>` with the class `onFormSubmittedFeedback` once the document is fully loaded. You can further customize this script to add or remove other CSS styles as required.
     
    For better understanding, here are the excellent programming learning platforms:- 1. W3School  2. Iqra Technology  3. JavatPoint

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,375 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans