Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Assessment Rule - Layout issue

  • arunicbe
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #120970 by arunicbe
Assessment Rule - Layout issue was created by arunicbe
I have created a assessment survey. I have a total assessment rule with formatted message.

I understand that the system automatically wraps the message with a table component when the assessment is completed.

I would like to remove the default formatting.

Please check the attached screenshot. My code is in rectangular box. LimeSurvey wraps this inside the
table. This disturbs the formatting done by me.

Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #120983 by tpartner
Replied by tpartner on topic Assessment Rule - Layout issue
You can use jQuery to remove your elements from the assessments table. Something like this in template.js:
Code:
  $(document).ready(function() { 
 
    if($('table.assessments div.row').length > 0) {
      $('table.assessments').before($('table.assessments div.row'));
    }
  });

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • arunicbe
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121031 by arunicbe
Replied by arunicbe on topic Assessment Rule - Layout issue
Thanks. It works. But, it disturbs other html markings.
It would be great if Ican get rid of the default html markings. Let me know where this markings are generated.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago - 8 years 9 months ago #121052 by tpartner
Replied by tpartner on topic Assessment Rule - Layout issue

But, it disturbs other html markings.

Sorry but without access to the source code (not in an image), that's the best example I can give.

Let me know where this markings are generated

I would not mess with the core code - changes will be over-written on updating.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 9 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose