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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
2
Cevaplar
4063
Görünümler
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/
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Tem 25
|
599 | ||
|
2
Haz 25
|
2108 | ||
|
1
Tem 24
|
1761 | ||
|
1
Tem 24
|
1769 | ||
|
0
Tem 23
|
2024 |
Hey did you find a way ? I have similar needs.