Help with Callback syntax to add input element and reference the parent element of the Callback #325
Unanswered
Ascariel1984
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if someone can help me out withe Callout syntax. I know how to use the Dice Callback to directly have access to the property value of the current field. But I cannot figure out how to do this for the regular Callback. Additionally I would like to add a checkbox with the Callback function.
Summary:
I tried:
const checkbox = document.createElement('input');
checkbox.type="checkbox";
checkbox.id="some-id";
checkbox.name="some-name";
var item = document.getElementsByClassName("fate");
item.appendChild(checkbox)
I want to do this to add e.g. 3 checkboxes to the Fate property line, so I can track how many points I have left (Fate: 3 [x] [x] [x])
Beta Was this translation helpful? Give feedback.
All reactions