Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Convert RightTextItem to CanvasItem

    Hi,

    We have a dynamic form with a RichTextItem displaying editable html.

    We would like to be able to click a button and convert the RichTextItem to some other type (maybe Canvas?) so the html is just displayed and not editable.

    How can we do that?

    #2
    Just hide that form item and show another.

    For example, add a StaticTextItem (named "staticTextItem") which is initially hidden to the form right next to the RichTextItem (named "richTextItem") both in a form with ID "theForm". Then when the button you mentioned is clicked, call theForm.setSetValue("staticTextItem", theForm.getValue("richTextItem") and then theForm.hideItem("richTextItem") and theForm.showItem("staticTextItem").

    Comment

    Working...
    X