Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Show or hide Div based on viewer

1624735973
Matthew C
Pro
Sheet Author
So, let's just start by saying this is probably not possible and I hate HTML and such, but there is nothing more annoying than as a GM, looking at a players character sheet and clicking to move to another page as the player is typing some long story and POOF the page changes and they stop what they were typing....so I want to know if it is possible to have it so the DIV changes from display:none  to display:flex  or whatnot per viewer and not completely So pseudo code would normally be: .box{ display:none } .boxToggle[value="1"] ~ div.box{ display:flex } so that is normal and what I would want is to probably change the toggle to some kind of a textworker so that it does not actually change a value, but it would show/hide for the viewer rather than the actual sheet
1624737250
GiGs
Pro
Sheet Author
API Scripter
I dont believe there's any way to do that on roll20. Any change to the character sheet affects everyone viewing that sheet.
1624738265
Matthew C
Pro
Sheet Author
I was afraid of that, not sure if it is an html/css/sheetworker issue or roll20 issue, but it is really annoying some times and I know with other programming languages you can tie values to the actual system sending/receiving data, so a big shame
1624741349
GiGs
Pro
Sheet Author
API Scripter
It's because of the limitations roll20 places on the way campaigns work and character sheets are constructed. I'm sure they have good reasons for the way things are, even if like you I find them frustrating at times.
1624780908

Edited 1624780939
Richard T.
Pro
Marketplace Creator
Sheet Author
Compendium Curator
I remember trying out a non-attribute version of tab layouts and I have a vague memory that it worked, but it can't see use sheetworkers basically. Could be false hope but I seemed to recall it being a thing.