kind new to Appian, just want to know how to remove the leading zero from a string in Expression rule.
Discussion posts and replies are publicly visible
linp0001 please try this may be solve your problem.
1)Syntax : --
text( value, format )
2) Syntax : --
split ( text, separator )
For more details please refer this documentation --> text() Function - Appian 21.1
split function --> split() Function - Appian 21.1
thanks for the information, the problem is that the number of leading 0 is variant. so it probably will not work.
Please try this plugin -regexreplaceall . Thus will help you for this specific case and also many other use cases related to formatting text using regex. Refer the link for downloading the plugin.
hope this helps. Have a good Day!
It's working! Thank you very much for the help.
Also, in case anyone is looking for an OOTB solution here - the fixed() function will do this easily for you.
© 2021 Appian. All rights reserved.