#Mark item as completed on shopping list (capitalization mismatch)

1 messages · Page 1 of 1 (latest)

fair latch
#

Hello. I was trying out the 'Complete' action for shopping list, triggered by Voice Assist. Everything works except for the capitalization. The shopping list capitalizes the first letter (e.g. Burritos), but the wildcard from voice input is all lowercase (e.g. burritos). I manually plugged in the capitalized version and it worked as desired. Is there a way to either make the 'Complete' action case-insensitive or to manipulate the input string to be capitalized?

Input: {item}
Passed to shopping list: {{ trigger.slots.item }}

torpid breach
#

Experiment with these filters in the template editor.
{{ 'helLo WOrlD'|capitalize }}
{{ 'helLo WOrlD'|upper }}
{{ 'helLo WOrlD'|lower }}
{{ 'helLo WOrlD'|title }}
There is an alternative way to write this: .filter_name at the end of your variable.

fair latch
#

Thanks. I'll give it a try