Building a Q & A system, adding values from a current note to a new one

What I’m trying to do

I’m trying to build a Q&A system where every question is a note and every answer is a note and the two notes are linked together. In general that works quite well.

Question.md

---
ask_next: 
status: open
language: en
tags:
  - "#question"
---
# Answers
---dataview
List "by " + answered_by
from #answer
where question = [[]]"
---

Answer.md

---
question: 
answered_by: 
language: en
tags:
  - answer
---

There is maybe better ways to design this but one thing I’d really like to achieve is:

When I am on a question note, I’d like to click a button or run an action, that creates an answer note. This note should then have a link to the question note in question property and the answered_by property filled with whatever the value was of ask_next.

Things I have tried

I’m already using the Templater plugin for new questions and answers.

I went down a rabbit whole of combining a bunch of plugins like QuickAdd and Meta Bind/Buttons but I wonder if there is a simple solution where I could just add a variable in the Answer template and somehow pass values in.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.