How to remove special character from field and save it ?

Hi Team,

I am getting special character i.e ";" in empty field, how to remove the special character and save the value?

Already tried stripwith() and it is not working as expected.

  Discussion posts and replies are publicly visible

Parents Reply
  • Yeah, need more info and Stewart is (obviously) right on and you need to rethink your code.

    I'm not sure why you're displaying an array in a single text field both the below code can work depending on your exact use case.

    a!localVariables(
      local!myArray: {"",""},
      local!emptyIndexes: where(
        a!forEach(
          items: local!myArray,
          expression: a!isNullOrEmpty(fv!item)
        )
      ),
      {
        a!textField(
          label: "Concatenate your array",
          value: concat(local!myArray)
        ),
        a!textField(
          label: "Remove empty indexes",
          value: remove(
            local!myArray,
            local!emptyIndexes
          )
        )
      }
    )

Children