+ Reply to Thread
Results 1 to 3 of 3
-
10-10-2008 11:31 AM #1
Junior Member
- Join Date
- Oct 2008
- Posts
- 3
Modifying question rendering behaviour
Hi,
I have a requirement to render survey questions (mostly radiobuttonlistitems for now) in a complex style that appears beyond the abilities of Checkbox to manage out of the box. I need to put in Javascript help popups, and image backgrounds to the question text.
Is this remotely possible? I thought along the lines of writing a Control Adaptor to override the render method, but I'm having troubles with this approach.
Has anyone done anything similar?
Many thanks,
Dave
-
10-15-2008 11:24 AM #2
Junior Member
- Join Date
- Oct 2008
- Posts
- 3
Well, I pretty much managed to achieve what I wanted to do by realising (doh!) that the question editor is an HTML editor, so any fancy stuff I want to put in there I just put it in as HTML with calls out to the external javascript.
-
10-15-2008 11:55 AM #3
Administrator
- Join Date
- Mar 2007
- Posts
- 385
Sorry for the delayed response. It sounds like you have solved your problem. I just wanted to add a couple of suggestions.
If you have javascript or css that will be used on every page it can be added to the header of a style template.
Additionally it is possible to enter invalid html/javascript which result in application errors. Typically we see this happen when an additional form tag has been added; asp.net only one form tag. In Checkbox 4.5 we added an option to help recover from this situation. If you enable the "Display HTML Items as Plain Text" option located on the Settings -> Preferences page you should be able to clean up the offending item.


LinkBack URL
About LinkBacks
Reply With Quote
