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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans