Skip to main content
July 15, 2024
Question

Adding Comma when user clicks enter key in Paragraph field

  • July 15, 2024
  • 2 replies
  • 0 views

i want to add comma to separate the numbers after clicking enter key

the current output like: 98998997899

but my desired output should be : 9899,899,7899

How can i acheive this....

2 replies

sriramk5349
July 15, 2024

a!localVariables(
  local!text,
  local!numbers,
  a!paragraphField(
    label: "test",
    value: local!text,
    saveInto:{
      local!text,
      a!save(
        local!numbers,
        a!localVariables(
          local!data:local!text,
          tointeger(split(local!data,char(10)))
        )
      )
    } 
  )
)

July 15, 2024

[mention:e3625867b9174cde8adf66b9ab725141:e9ed411860ed4f2ba0265705b8793d05]  Thankyou so much its working fine