Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Adding CSS to survey questions

Matt Pruett
on 8/21/15, 5:16 PM 721 views

I have created a module to add css to a survey, and this works well as most survey elements have a class associated with that survey.  The problem is that there are specific questions I would like to add more custom css to.  At first glance I thought this looked trivial as each of the survey questions has an id.  Then I realized the id started with a number which made it not accessible.  I believe a long term solution for this would be to change the id from 2_13_57 (which would be survey id 2, page id 13, question id 57) to survey_2_13_57.  I may end up changing this in the module directly but if anyone has a better short term solution I am open to suggestions.

Hey did you find a way ? I have similar needs.

Yassine TEIMI
on 11/10/15, 11:56 AM
Matt Pruett
On 11/10/15, 2:02 PM

So I ended up modifying the survey module to prefix with the word survey on all the classes...but later someone pointed out to me that this was a viable solution https://css-tricks.com/ids-cannot-start-with-a-number/

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 8/21/15, 5:16 PM
Seen: 721 times
Last updated: 11/10/15, 2:02 PM