Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4261 มุมมอง

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.

ผู้เขียน คำตอบที่ดีที่สุด

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/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to change colors of a survey? แก้ไขแล้ว
2
ก.ค. 25
857
Add images to Odoo Survey Questions แก้ไขแล้ว
2
มิ.ย. 25
2409
1
ก.ค. 24
2019
1
ก.ค. 24
2042
0
ก.ค. 23
2334