-
Hello, I hope someone can assist me. I've been trying for a while to accomplish this task without success. The values are being prompted one by one, and I can't manage to display all of them together at once, only sequentially. Thanks. const myScript = {
settings: {
text: "",
checkbox: false,
dropdown: "Option 1",
format: "{{DATE:YYYY-MM-DD}}"
},
myQuickAddFunction: async function() {
// Aquí puedes acceder a la API de QuickAdd y usar las configuraciones definidas
const textInput = await this.api.inputPrompt("Enter some text");
const checkboxResult = await this.api.yesNoPrompt("Confirm?");
const dropdownChoice = await this.api.suggester(["Option 1", "Option 2", "Option 3"], ["Option 1", "Option 2", "Option 3"]);
const currentDate = await this.api.date.now("YYYY-MM-DD");
// Procesa los resultados como necesites
console.log(textInput, checkboxResult, dropdownChoice, currentDate);
}
};
// Suponiendo que 'api' es la API de QuickAdd ya disponible en el contexto
myScript.api = app.plugins.plugins.quickadd.api;
// Ejecutar la función dentro del script
myScript.myQuickAddFunction(); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @Z4rko963 Normal QuickAdd behavior is to ask sequentially when just using the plugin. However, I added the possibility of creating script settings which would show all the settings at once - as expected. You can find a script that shows script settings here: Here's a video to clarify the behavior: Obsidian_NwxSwoUScL.mp4 |
Beta Was this translation helpful? Give feedback.
-
Hi @chhoumann , I just wanted to express my gratitude for the clarification on QuickAdd's behavior. It's clear now that the default is to prompt sequentially, and the option to script settings for an all-at-once display is a fantastic addition. The script settings link and the video were particularly helpful. Thanks for making QuickAdd such a powerful tool!. Thanks. |
Beta Was this translation helpful? Give feedback.
Hey @Z4rko963
Normal QuickAdd behavior is to ask sequentially when just using the plugin. However, I added the possibility of creating script settings which would show all the settings at once - as expected.
You can find a script that shows script settings here:
https://quickadd.obsidian.guide/docs/Advanced/scriptsWithSettings
Here's a video to clarify the behavior:
Obsidian_NwxSwoUScL.mp4