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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to make field display in form in full length

(0) ShareShare
ReportReport
Posted on by

Hi all,

If lets say I have a field with string length 20. How can it be automatically display as whole ?

because I have many cases whereby I have to one by one change the text box size in a form since it only show not whole.

Thanks

I have the same question (0)
  • Suggested answer
    Rahul Mohta Profile Picture
    21,032 on at
    RE: How to make field display in form in full length

    on the form control, set property for display as auto or assign it the max value of the field

  • Blue Wang Profile Picture
    on at
    RE: How to make field display in form in full length

    Hi WWwong,

    Set "Display Length" propertity , You can set it very large, such as 1000.

  • Community Member Profile Picture
    on at
    RE: How to make field display in form in full length

    Hi,

    I did put the property of all the FormStringControl - Display length mode to Auto. It is their default, right ?

    Or there is another "display" that I don't know ?

    Thanks,

  • Community Member Profile Picture
    on at
    RE: How to make field display in form in full length

    There is another property called Width mode, but the default is already Size to Content, it is meant the width should be based on the content of the field, right ?

    because currently, I have to scroll to the right, inside of the text box / string control in order to see the full content.

    Thanks

  • Community Member Profile Picture
    on at
    RE: How to make field display in form in full length

    Hi Blue,

    Is there no other way, I mean it still need me to manually change the property one by one for fields with case like that.

    Thanks.

  • Blue Wang Profile Picture
    on at
    RE: How to make field display in form in full length

    Hi WWwong,

    Yes, you need to change it one by one.

    But ,You can change it dynamically through the code.

    Such as:

    public void activate(boolean _active)
        {
            super(_active);
            String111 s111 = YourControlName.valueStr();
            int _len = strLen(s111);
            _len = _len*10;
            YourControlName.displayLength(_len,AutoMode::Fixed);
            YourControlName.width(_len);
        }

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,157

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 674 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans