Is it possible to conditionally format questions based on device type used to take the survey? | XM Community
Solved

Is it possible to conditionally format questions based on device type used to take the survey?

  • 10 October 2019
  • 2 replies
  • 50 views

For example, I want my scales to be horizontally positioned (both in the survey editor and if users are taking the survey via PC). But if users are taking the survey via mobile, I want the scales to be vertically positioned. I understand that Qualtrics does this automatically, but the conversion doesn't look good. The only way for scales to look good on mobile devices, is for them to be originally formatted vertically. Is this something that can be achieved with JavaScript? Why isn't there a way to better customize a survey for mobile users?

!
icon

Best answer by KoalaTricks 11 October 2019, 21:05

View original

2 replies

Userlevel 4
Badge +3
@Sarah89 You don't need Javascript, but question-level CSS can change the style for the mobile viewport:

```
<style>
@media all and (max-width:480px){
.Skin label.MultipleAnswer,.Skin label.SingleAnswer {
text-align: left;
}
}
</style>
how fun was this game
```
placed here:
!

which gets you (might vary/need tweaking depending on your theme):
!
Thank you!! This is perfect

Leave a Reply