Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
brucejensen
Contributor III
Contributor III

Text Object - trim after comma

In a text object, is there a way to trim anything that comes after a comma? It's not a set number of spaces but varies based on the selection. My text object has current selections (=GetFieldSelections([Field Name]) but when I have two selections, it shows both separated by a comma. I just want to show the first one. Thanks in advance for your help.

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

Try:

=subfield(GetFieldSelections([FieldName]), ',', 1)

Hope this helps!

View solution in original post

2 Replies
jerem1234
Specialist II
Specialist II

Try:

=subfield(GetFieldSelections([FieldName]), ',', 1)

Hope this helps!

brucejensen
Contributor III
Contributor III
Author

Perfect. Thanks!