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?