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

Dialog - add fields side by side on the dialog

(0) ShareShare
ReportReport
Posted on by 678

Hi All,

when we create a class extends Runbase and override dalog() method, 

we can add fields on the dialog but I wonder how to add fields side by side on the dialog as a fixed position. 

For example, we add a field on the left and add a toggle on the right and depending on the toggle you can add a field value or not.

Thank you. 

I have the same question (0)
  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi ShawnDEV,

    You can use DialogGroup and define the number of columns. You can then add the dialog fields under the group. This will ensure that the fields are side by side.

    You can check this post as an example.

  • ShawnDEV Profile Picture
    678 on at

    Hi,

    On top of it, is there a way to present field label next to the field in the dialog?

    Thank you.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Hi ShawnDEV,,

    Not sure what you mean by that. Could you please share a screenshot to show where you need the label to be?

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi ShawnDev,

    Please, take into account that UI layout is controlled by the system itself, and trying to make custom looking dialog could become an issue in the future.

    Also, for such kind of dialogs, I recommend using own form instead of building dialog in x++. It's much easier to build a custom dialog form in the designer (if it's not just a field). There are many examples in the system of how it can be done and you can find examples by cross-references for method Dialog::newFormnameRunbase.

  • ShawnDEV Profile Picture
    678 on at

    Well at this moment, the label is shown above the field in the dialog.

    But I want to show the label next to the field like below.

    Is there a way to present it in this way?

    3364.screenshot.png

    Thank you. 

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi ShawnDev,

    There was a similar discussion about label position and it was unresolved. The Label position property doesn't work anymore (for me) and maybe it was depreciated or works only in certain form patterns.

    community.dynamics.com/.../890113

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans