Go Back   CHECKBOX® Online Community > Checkbox® > CHECKBOX® Survey Server 4.x

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2008, 10:31 AM
Junior Member
 
Join Date: Oct 2008
Posts: 3
Default 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
Reply With Quote
  #2 (permalink)  
Old 10-15-2008, 10:24 AM
Junior Member
 
Join Date: Oct 2008
Posts: 3
Default

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.
Reply With Quote
  #3 (permalink)  
Old 10-15-2008, 10:55 AM
Senior Member
 
Join Date: Mar 2007
Posts: 201
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 01:37 AM.


SEO by vBSEO 3.2.0