I have a card template where I have an input field, working essentially the same way the {{type:field}} does on the front side of the card.
Now, I wish to create the same type of transformation that is used in typeans for the back of the card using my input (say the id of the input is “input”). How would I go about doing that?
Have you considered simply using the built-in type-answer functionality?
I was trying to avoid that actually. It’s for a different approach for creating cards.
It’s always a good idea to show us your current code.
If you need help with getting the input text on the backside of your card, the following will help:
In my notetype, the details that could be used are predefined and are not going to change (stored as a list in a .js file which is used as a source in the card template). Instead, what I’m doing is creating the card if the field corresponding to the card is non-empty.
An additional functionality in the card is to switch between type mode and mcq mode, so to generate the options for mcq mode, I can directly use the predefined list, but I’d have to duplicate some of the information to be used as a field for type.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.