Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

make setFormNotification show more lines

Posted on by Microsoft Employee

Is there a way to make showformnotification show more lines? Right now it seems to only show one line and the little scroll bar doesnt do much and seems to scroll half way down so it doesnt show the text in a very user friendly way.

I have seen it show more than one row so not sure what factors make it go down to only showing one row.

I'm using chrome, while the scrolling seems to be a lot better in IE it still only displays one line

Example

if(AccountEntityType!=null && guid!=null) {
Xrm.Page.ui.setFormNotification("We've come this far");
Xrm.Page.ui.setFormNotification("Values: " + " " + AccountEntityType + " " + guid, "INFORMATION");
}

Those will show in a thin one line box at the top of the form but have to scroll to see both

*This post is locked for comments

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: make setFormNotification show more lines

    It's probably one line per notification, so maybe you were trying to combine all of them into a single notification before

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: make setFormNotification show more lines

    thanks, it seems to be displaying more now for some reason, I've got it displaying up to four errors and warnings. I'm not sure what conditions made it small and single line when I was testing.

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: make setFormNotification show more lines

    Hi Matt,

     I believe those notifications expand to the second line automatically whenever the text is too long to fit into one line. However, all HTML tags are simply encoded, so I don't think you can really enforce a new line there..

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans