Checkbox Forums

Help
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    davetansley is offline 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

  2. #2
    davetansley is offline 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.

  3. #3
    pwiesner is offline Administrator
    Join Date
    Mar 2007
    Posts
    385

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO 3.5.0