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

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,162 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,162 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,710 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

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans