How to add a suffix to a :count

I need to display a total count of posts with the correct ordinal suffix (1st, 2nd, 3rd, etc.) using a Do a Search for X:count in Bubble. I know how to format dates, and I could write a JavaScript function for this, but I’m wondering if there’s an easier way within Bubble. Using conditionals is an option, but it’s inefficient since I’d have to call the same search multiple times for different suffix conditions.

Store the count in a custom state or a hidden input so you only search once, then reference the custom state/hidden input in the multiple conditions to cover all ordinals.

1 Like

Thanks Gaby!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.