
Hello, I am making a character sheet for a new TTRPG. There I have abilities repeating section and I would like to add a button that would expand the skill row and show the ability description with a button on the bottom to post the info into the chat. Something like this:
But I am not sure how to go about this I have the repeating section with 3 elements now. The input for skill name, the button, and hidden div where the skill description is going to go. When I set the button to be an action button I was able to call a sheetworker function that way, but I have no idea how I could reference the hidden div from there. I think pure JavaScript is disabled here (I think I read that somewhere) so when I tried to do it that way it did not work either. I also tried doing it purely with HTML+CSS like described here but I did not manage to get it working. But I am not sure if I should spend even more time trying to get it working if it isn't the best approach.
So my question is: How should I go about it? What approach do you think I should take to solve this problem? Is there a way to reference the <div> with a description through a sheet worker function and change it's display CSS property? Or should I try to spend more time trying to get the pure HTML+CSS approach working? -- do you know if something similar was already implemented in some other sheet? Maybe I could take a look at how they did it there.