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, ...
Answered

Html editor on form extension

(0) ShareShare
ReportReport
Posted on by 190

Hi

I have added a html editor and button on form extension. On button click I want to get the content of html editor. 

HTMLEditor text = projtableform.design(0).controlname("desc") ;

text.valueStr() not returning any value.

How to do it? Thanks

Pradeep M

I have the same question (0)
  • nmaenpaa Profile Picture
    101,166 Moderator on at

    If you debug it, is the "text" variable not null before you try to call the .valueStr() method?

    Does your form have a text field called "desc"? Is there some text in that field?

  • Pradeep00 Profile Picture
    190 on at

    Yes the text variable is not null. And there is a html editor on the form with name desc. And in providing a value to it. But I'm not getting that value through code.

  • nmaenpaa Profile Picture
    101,166 Moderator on at

    Perhaps you could try to cast it as HTMLEditor type:

    HTMLEditor text = projtableform.design(0).controlname("desc") as HTMLEditor;

    You could also use cross references to see how HTMLEditor is used in the standard application, just in case there's something special that you neee to do.

  • Sukrut Parab Profile Picture
    71,735 Moderator on at

    Did you look at standard email template form ? It uses HTML editor as well  and may provide you some direction  to achieve your  task. Also refer below link . Its old but may help you

    stackoverflow.com/.../using-sysinethtmleditor-in-ax-2009

  • Pradeep00 Profile Picture
    190 on at

    Still not able to get the content from HTML editor control on button click. Any Suggestions ?

  • Pradeep00 Profile Picture
    190 on at

    Sukrut

    And yes I have seen the code for standard email template form. it has functionality to set the content to HTML editor but not read the content.

  • Verified answer
    mhdshb1 Profile Picture
    1,250 on at

    Hi Pradeep,

    You need to use the parmHtmlContent() method,  this method can set and get html content.

    Hope this helps :)

    Regards,

    M

  • Pradeep00 Profile Picture
    190 on at

    Thank You Mohammad Al-Saheb ..It worked :)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans