I have a custom dropdown field that has the following format:
Model - Inventory Number
Example: Model1 - 141
I want to use liquid markup to keep the model number but remove the hyphen and the inventory number. I've tried various strategies, but to no avail. Does anyone have any suggestions on how to accomplish this?
If you're wanting to use Liquid Markup to remove those characters in email output, it looks like you should be able to use the split: option in Liquid – here's an example that removes part of a placeholder's text based on a double colon: How can I format placeholders with liquid markup?