TrimEnd
4 min
trims specified characters from the end of a text string each character in the modifier is evaluated, regardless of order, and repeated characters are removed this example shows how to trim end characters from a string original token 80906 1234 modifier trim 1234 result 80906 this example shows how to trim repeated characters from the end of a string original token 123400005 modifier trim 05 result 1234 this example shows how to trim characters from the end of a string, regardless of order original token abcergzxy modifier trim yxz result abcerg syntax trimend(inputtext, trimtext) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes business rules calculation rules (after save, with or without also recalculate on load) yes1 business rules calculation rules (before save or always, without also recalculate on load) yes business rules calculation rules (before save or always, with recalculate on load) yes1 business rules editing rules yes business rules initialization rules yes business rules read only rules yes business rules required rules yes business rules validation rules yes client expressions yes object permissions no services no ldap no mobile no quick actions (except ui quick actions) yes ui quick actions yes reports yes search/dashboard without field references no search/dashboard with field references no 1 not fully supported in calculation rules that have a condition of after save or the also recalculate on load option selected it may fail if the rule's field is used in a grid, form, or saved search parameters parameter description inputtext input string to perform trim end trimtext text that needs to trim from input string return value returns a string that doesn't contain trimtext (text will trim from end) example $(trimend('abcergzxy','yxz') returns this value abcerg
