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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Resizing the Note field in Form DocuView

(0) ShareShare
ReportReport
Posted on by 4,075
Right now when looking at Attachments in D365, the form looks like this.
 
And the customer has asked if it would be possible to make the Notes field wider and higher.
I have found a way to make the field wider, but when I try to make it higher, that does not work.
Since I need to extend the standard form DocuView and when making an extention of the form it does not seem to be possible to edit the fields properties.
So instead I have made the following extention class.
 
internal final class CUS_DocuViewForm_EventHandler
{
    [FormEventHandler(formStr(DocuView), FormEventType::Initialized),
    public static void DocuView_OnInitialized(xFormRun sender, FormEventArgs e)
    {
        FormControl notesControl = sender.design().controlName('DocuRef_Notes');
        
        if (notesControl)
        {
            notesControl.width(500);
            notesControl.height(500);
        }
    }
}
And the width seems to work, but the height does not work as expected, this is how the form looks with this change.
 
 
So while the Height of the notes field is larger, the number of lines shown from the note is not.
Does anyone know how I can change the size of the note field on the form?
Categories:
I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,540 User Group Leader on at
    Hi,
    Provided when you extend the form, the field does not allows you to modify width and height mode (as those are locked)
     
    One solution that I can think of is the use of a new tab with pattern Fill Text, it has been discussed in the past (https://community.dynamics.com/forums/thread/details/?threadid=0250cc82-fa0b-4cd0-bf65-7d56afa1c113)
     
    The new tab would look something like this (when both the Height Mode and Width Mode are set as SizeToAvailable)
     
     
     
     
     

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 836 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 441 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 346 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans