Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Changing Thank you message DIV CSS

(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
    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans