Skip to main content
Participating Frequently
Sep 1, 2022 9:48 PM UTC
Solved

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!

    konduruc733182
    Inspiring
    Sep 7, 2022 6:59 AM UTC

    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

    Inspiring
    Sep 2, 2022 4:36 AM UTC

    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
    Brainy
    Sep 2, 2022 2:53 PM UTC

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

    konduruc733182
    Inspiring
    Sep 7, 2022 6:59 AM UTC

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

    Participating Frequently
    Sep 7, 2022 5:34 PM UTC

    Thanks you!!