You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmodalForm=app.plugins.plugins.modalforms.api;constdate_creation="➕ "+window.moment().format("YYYY-MM-DD")consttxt_prio=""consttxt_echeance=""constresult=awaitmodalForm.openForm('TODO_global');if(result.get("choix_prio")=="true"){txt_prio=result.get("prio");txt_prio="faux au choix prio";}if(result.get("choix_echeance")=="true"){txt_echeance=result.get("type_echeance")+result.get("date_echeance");txt_echeance="faux au chois echéance";}returnresult.asString('{{todo_type}} TODO {{action}}')+"|"+txt_prio+"|"+date_creation+"|"+txt_echeance+"|"
my problem is on the if statement ... quicka dd don't see them !
foe eremple, this is the result:
TODO xxxx||➕ 2024-06-28||
i don't have the value if true or value if false ....
The text was updated successfully, but these errors were encountered:
i want to use modal form to add task on a specific file
for that i use:
in modal form
{
"title": "actions_tous",
"name": "TODO_global",
"fields": [
{
"name": "todo_type",
"label": "type d'action",
"description": "",
"isRequired": false,
"input": {
"type": "select",
"source": "fixed",
"options": [
{
"value": "- [ ]",
"label": "normal"
}
]
}
},
{
"name": "action",
"label": "action",
"description": "",
"isRequired": false,
"input": {
"type": "text"
}
},
{
"name": "choix_prio",
"label": "priorisation",
"description": "cocher pour ajouter une priorisation",
"isRequired": false,
"input": {
"type": "toggle"
}
},
{
"name": "prio",
"label": "type de priorisation",
"description": "",
"isRequired": false,
"input": {
"type": "select",
"source": "fixed",
"options": [
{
"value": "",
"label": "normal"
},
{
"value": "🔺",
"label": "très haute"
}
]
}
},
{
"name": "choix_echeance",
"label": "ajouter une echéance ?",
"description": "",
"isRequired": false,
"input": {
"type": "toggle"
}
},
{
"name": "type_echeance",
"label": "type d'échéance",
"description": "",
"isRequired": false,
"input": {
"type": "select",
"source": "fixed",
"options": [
{
"value": "📅",
"label": "echéance"
},
{
"value": "⏳",
"label": "planification"
}
]
}
},
{
"name": "date_echeance",
"label": "date de l'échéance",
"description": "",
"isRequired": false,
"input": {
"type": "date"
}
}
],
"version": "1"
}
in quickadd
my problem is on the if statement ... quicka dd don't see them !
foe eremple, this is the result:
i don't have the value if true or value if false ....
The text was updated successfully, but these errors were encountered: