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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to show the full label for a field on the form

(0) ShareShare
ReportReport
Posted on by 72
Hi All,
My requirement is to show the full label for a field. let say, I have a string fields & its label is some 100 characters long. So by default its showing only starting characters & hiding rest of it. so, to view full label we need to expand that field on grid.
I don't want to set it manually by dragging it & then saving it instead I want to show label fully when form will open & fields width will resize itself as per label length.
I am using current version of D365 finance & operations.
 
Thanks,
Rahul
  • GirishS Profile Picture
    27,843 Moderator on at
    Hi Rahul,
     
    I am not sure why your label is that much big.
    Anyways to solve the issue, try setting the control width model property to 'manual' and set the width property to whole number and check.
     
    Thanks,
    Girish S.
  • Rahul Dahiya Profile Picture
    72 on at
    Hi Girish,
    thanks for the quick reply.
    Actually I know its not very common to have this much long label but its client requirement on a field.
    I tried to set width mode & width property but that's not working for this current requirement.
     
    Thanks,
    Rahul
  • GirishS Profile Picture
    27,843 Moderator on at
    I tried that and its working for me.
    Can you show us the screenshot of the property?
     
    Thanks,
    Girish S.
  • GirishS Profile Picture
    27,843 Moderator on at
    Refer to the property screenshot.
     
    Refer to the output on the form. Its expanded but I am not sure whether the label id gets expanded. If possible, can you provide the screenshot.
     
    Thanks,
    Girish S.
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    According to your problem description, it seems that you can't adjust the width of the label from a business perspective without dragging the tab left and right, but we found a post for you that is similar to the question, in which someone made a different suggestion from a development point of view, you can use it as a reference, the link is as follows: 动态社区论坛主题详细信息 (dynamics.com)
    Best regards,
    Kevin
  • Rahul Dahiya Profile Picture
    72 on at
    Hi Girish,
    I have set width property to 1500. we can see the full label in tooltip but still its not expanded after opening the form.
     
     
     
    Thanks,
    Rahul
  • GirishS Profile Picture
    27,843 Moderator on at
    Do one more thing. Set the control Auto declaration property to Yes.
    On the init method of the form set the label width as follows.
    ControlName.labelWidht(1500);
     
    Thanks,
    Girish S.
  • Rahul Dahiya Profile Picture
    72 on at
    Hi Girish,
    I have tried this labelwidth property as well but the result still the same, its showing only some char in label & hiding others.
     
    Thanks,
    Rahul
  • Rahul Dahiya Profile Picture
    72 on at
    Hi Kevin,
    Thanks for the reply.
    I have check that reference but it's all about to resize the textbox of form control using display length or width property.
    but here I wan to resize the label. Also, my field string length is just 30 but label is some 100 char long. so, how label will adjust based on strlength.
     
    Thanks,
    Rahul
  • GirishS Profile Picture
    27,843 Moderator on at
    You have tried all the work around. Setting the width property will work but I am not sure why its not working.
    Only option will be expanding the column manually from the UI. Other then this ther is no other options.
     
    Thanks,
    Girish S.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 426 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 358

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 353 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans