Jump to content
View in the app

A better way to browse. Learn more.

Learn more

Databases: use a Yes/No field to display/hide a badge?

Featured Replies

Is it possible to use a Yes/No field in a database to show/hide a badge?

Meaning if the Yes/No field is set to No then I don't want to see any badge, but if it's set to Yes I want to see a badge.

I tried to enter the following in the field's Display Custom Format, but that doesn't work (the badge never shows)

{{if $value == "Yes"}}
	<span>Legacy</span>
{{endif}}

I tried the following but the badge always shows

{{if $value}}
	<span>Legacy</span>
{{endif}}

Edited by David N.

  • Author

That worked! Thank you!

Recently Browsing 0

  • No registered users viewing this page.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.