chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.5k stars 136 forks source link

[BUG] Labels for multiple choice captures #506

Open tauren opened 1 year ago

tauren commented 1 year ago

Describe the bug

In a Capture template, the template prompts the user to select three different VALUE choices. Each of the three values have three options, all with the same values: 0️⃣, 🔼, ⏫. Here's an example template:

- {{DATE:HH:mm}} {{VALUE:Title}} 
- sugar::{{VALUE:0️⃣,🔼,⏫}} 
- salt::{{VALUE:0️⃣,🔼,⏫}}
- fat::{{VALUE:0️⃣,🔼,⏫}}

The problem is that all of these look the same and I can't tell which choice I am making. It seems like there needs to be a label as well.

Furthermore, when I select an option for the first value, I am not prompted for the other two values. They are just set to whatever the first value is. This bug makes what I am doing not possible. I am able to work around this problem by naming the options uniquely, such as 0️⃣🧂, 🔼🧂, ⏫🧂. Adding the "salt" icon to the values also helps identify which question I'm answering, but it isn't an ideal solution.

It appears there is a fix for the label problem for {{FIELD:fieldName}}, with the prompt now showing Enter value for fieldName. But it really seems like multiple choice VALUE items need labels too.

image

Desktop (please complete the following information):

danielo515 commented 1 year ago

I was going to report the same problem. This really makes hard to create any complex template. As a workaround I'm using either templater (using JS calls) or scripts, none of them are ideal for most people. I thought this was a bug, but maybe it is just not implemented

Smitty010 commented 8 months ago

This problem becomes more of an issue when you use macros. I want to capture the priority using the choice selection and then reuse the variable "priority" in a latter step of the macro. Since I can't label the choice, I don't see how to do this.