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 :
Microsoft Dynamics NAV (Archived)

Reduce font size

(0) ShareShare
ReportReport
Posted on by

Hi,

How can I change this to say, if there is greater then 9 letters, reduce the font size by 2, and again if theirs greater then 18 letters, reduce it by so many. 78.PNG

Thanks 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    60,999 Super User 2025 Season 2 on at

    I dont think it is possible

  • Community Member Profile Picture
    on at

    Is there any way of saying Every time there's a '/' reduce the font size?

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    May be you can look at Font size expression

    Or

    You can create two text box and make it visible based on condition

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at
  • Community Member Profile Picture
    on at

    Thank you that's very useful!

    This top line does work ..

    =iif(len(Fields!ProdOrderNo.Value)<9, "24pt", "16pt")

    How can I adjust this if it's possible to include..

    =iif(len(Fields!ProdOrderNo.Value)<18, "24pt", "8pt") but include it in one line as currently it doesn't pick up the second line.

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at
    =switch(
    	iif(len(Fields!ProdOrderNo.Value)<9, "24pt", "16pt"),
    	iif(len(Fields!ProdOrderNo.Value)<18, "24pt", "8pt")
    )

    Try this. By the way, do test, because I did not test it.

  • Community Member Profile Picture
    on at

    Thanks again, unfortunately it doesn't appear to have worked.  

  • Verified answer
    Rajasekhar@MS Profile Picture
    5,569 on at

    Hi

    You can try below

    =iif(len(Fields!ProdOrderNo.Value)<9, "24pt", iif(len(Fields!ProdOrderNo.Value)<18, "16pt", "8pt"))

  • Community Member Profile Picture
    on at

    There isn't a CHOOSE function available?

    iif (length(field) < 18, choose(length(field),24,24,24,24,24,24,24,24,24,20,22,20,18,16,14,12,10,8,6),6) or whatever the format is...

    would give finer control.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans