JWT Copy a parsed text to a field : Checkbox

Marc Jason Mutuc
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2018

I have a checkbox with the following options

Blue (BL)

Red (RD)

Magenta (MAG)

Green (GRN)

The output I want is BL,RD,MAG,GRN

This is similar to what was resolved before but the solution is fixed to two characters

1 answer

0 votes
Marc Jason Mutuc
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2018

I'm using this one but I know there is a better and cleaner approach

replaceAll(replaceAll(toString(textOnStringList(toStringList(%{19401}), substring(^%,length(^%)-4,length(^%)-1))), "\\s", ""), "\\x28", "")

 

Basically, I first replace the spaces with blanks then replace ( with blanks. Can someone improve the code please?

Suggest an answer

Log in or Sign up to answer