Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to make field display in form in full length

Like (0) ShareShare
ReportReport
Posted on 10 Apr 2020 07:09:11 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

  • Blue Wang Profile Picture
    on 10 Apr 2020 at 08:42:28
    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);
        }

  • Community Member Profile Picture
    on 10 Apr 2020 at 08:04:17
    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.

  • Community Member Profile Picture
    on 10 Apr 2020 at 08:02:04
    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 10 Apr 2020 at 07:43:51
    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,

  • Blue Wang Profile Picture
    on 10 Apr 2020 at 07:30:32
    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.

  • Suggested answer
    Rahul Mohta Profile Picture
    21,014 on 10 Apr 2020 at 07:23:11
    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading complete