HTML Colour code on Bioform dropdown
5 posts
• Page 1 of 1
HTML Colour code on Bioform dropdown
Hey there,We use an alignment system within the bio form of our nova site, with the values colour coded for light and dark and I was hoping to make the process of selecting alignment values easier by making it a dropdown list. However, while I was able to insert the html colour code into the bio form, it seems to get removed before it actually appears on the character sheet. Is this Nova filtering out "malicious code" or am I doing something wrong?
I inserted the values into the system as below:
- Code: Select all
-50,<font color="#800000">-50</font>
-45,<font color="#990000">-45</font>
-40,<font color="#b30000">-40</font>
etc
The colours work and look lovely on the "Edit bioform" page, but otherwise do not show up. I have tried it the other way around i.e. with the database value in html but that is even worse, with nothing appearing at all. If there is not a way to do this, I understand and I appreciate the advice.
In case it helps, the URL for the site is: http://www.starwars.anewage.co.uk/
It is running Nova 2.5.1
Re: HTML Colour code on Bioform dropdown
It probably doesn't like the #, so you may need to try using the rgb format instead of hex (though that might give you similar issues). Worth a try though.Re: HTML Colour code on Bioform dropdown
Thanks. I will give that a go.Re: HTML Colour code on Bioform dropdown
I tried it as both:- Code: Select all
<font color="rgb(128, 0, 0)">-50</font>
and as simply:
- Code: Select all
<font color="red">-50</font>
But neither worked. However, looking at the actual character page, it seems to be pulling through the database value, rather than the content, although that may just be because it does not like it when I try to add HTML to the database value.
Re: HTML Colour code on Bioform dropdown
Sorry, I wasn't paying attention to the original post as closely as I should. My bad.Yeah, that's no bueno. Most browsers won't let you put HTML in the content of a dropdown, so you'll probably need to come up with a different solution.
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest