Help with Text and rich text

Hello everyone, I have a question, well; I have a rather novice doubt, I have a text, and I want that text to appear in a rich text what I put, but what I am looking for is that as I add data to that text, more rich text will be added, how could I do that? I already added it in local variables, I managed to save it in a rich text, but to not delete this one and make a new one, what could I do? I hope I understand, thank you very much!

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Senior Developer

    Hello Gussil,

    I hope the below code will address your query

    a!localVariables(
      local!text:"Enter Text ",
      local!value,
      {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: local!text,
              size: "LARGE"
            )
          }
        ),
        a!textField(
          label: "Enter Text",
          placeholder: "Enter Text To See Rich Text",
          value: local!value,
          saveInto: {
            local!value,
            
            a!save(local!text,append(local!text,local!value))
          }
        )
      }
    )

Reply
  • +1
    Certified Senior Developer

    Hello Gussil,

    I hope the below code will address your query

    a!localVariables(
      local!text:"Enter Text ",
      local!value,
      {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: local!text,
              size: "LARGE"
            )
          }
        ),
        a!textField(
          label: "Enter Text",
          placeholder: "Enter Text To See Rich Text",
          value: local!value,
          saveInto: {
            local!value,
            
            a!save(local!text,append(local!text,local!value))
          }
        )
      }
    )

Children