Skip to main content
September 1, 2022
Solved

Help with Text and rich text

  • September 1, 2022
  • 4 replies
  • 0 views

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!

    Best answer by konduruc733182

    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))
          }
        )
      }
    )

    4 replies

    September 2, 2022

    Could you please put more light to your query? What exactly you are looking for in the below Quote?

    I add data to that text, more rich text will be added
    harshitb6843
    September 2, 2022

    Code, screenshots, anything more that you can add? Because whatever information you have provided is not sufficient. 

    konduruc733182
    September 7, 2022

    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))
          }
        )
      }
    )

    September 7, 2022

    Thanks you!!