2

I have two columns of note type, GreetingMessage and PopupMessage

I have built ascx pages to save and edit it

When I save it, I attached to the process and checked the data,

For both the columns the value is sent as test

Even in the list the value is saved as test

But when I get the item using id, it returns

"<div class=\"ExternalClass09B743SDFKJH435JK34\">test</div>"

as the value for the first field

I checked both the fields, they both have the same setting and Enhanced rich text (Rich text with pictures, tables, and hyperlinks) is selected in both columns

5
  • This is the expected behavior for enhanced rich text fields Commented Jul 13, 2016 at 12:11
  • But this is happening only in one of the enhanced rich text fields? Commented Jul 13, 2016 at 12:14
  • Are you saving the two fields in the same way? Commented Jul 13, 2016 at 12:17
  • Yeah, exactly the same way I even checked what's being saved and both save same data But, when I do a getItemById it returns value with this div Commented Jul 13, 2016 at 12:25
  • I changed both to plain text, changed them back to rich text and now getting the same issue in both the fields ! Is there a way to overcome this? Commented Jul 13, 2016 at 13:46

1 Answer 1

2

Keep column as plain text. In this case not getting additional div tags.

Specify the type of text to allow: Plain text <<<< Rich text (Bold, italics, text alignment, hyperlinks) Enhanced rich text (Rich text with pictures, tables, and hyperlinks)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.