web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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;//>
 
I have the same question (0)
  • Khan zain Profile Picture
    1 on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 166 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 51 Most Valuable Professional

#2
NeerajPawar Profile Picture

NeerajPawar 51

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans