🕑 How to Add Custom Code to Your Survey| 2-Minute Tips | May 12th 2026 | Experience Community
Skip to main content

🕑 How to Add Custom Code to Your Survey| 2-Minute Tips | May 12th 2026

  • May 12, 2026
  • 1 reply
  • 23 views
AlonsoC
Administrator
Forum|alt.badge.img+29

Hello everyone! Today we’re learning about custom code! By the end of this video you will know where to find the JavaScript editor, where to add your custom CSS, and how to preview your code changes.

 

 

FAQ for Custom Code

 

Important: Does Qualtrics support custom code?

Please note that our support team does not offer any assistance or consultation on custom coding. The best way to get help on custom coding is by asking a question on the Experience Community.

Where can I find custom code examples?

The Experience Community has many posts with custom CSS and JavaScript code examples that you can use in your surveys.

 

Adding Custom CSS

 

Where do I add custom CSS to my survey?

  1. Open your survey and go to the Look and Feel tab.
  2. Head over to the Style section.
  3. Scroll down and click Edit on the Custom CSS box.

How do I add custom CSS code?

  1. Go to the Experience Community post that contains the custom CSS code you want to use.
  2. Copy the code.
  3. Paste it into the Custom CSS editor.
  4. Click Save, then Apply.

Will I see the changes in the Look & Feel preview?

No, you will not see changes in the Look & Feel preview. To see your custom CSS in action, go to the Survey Builder and click Preview. The changes (such as a gradient background) will appear in the live preview.

 

Embedding Custom HTML (Scrollable PDF Example)

 

How do I embed a scrollable PDF into a question?

  1. Create a new Text/Graphic question in Survey Builder.
  2. Click into the question text.
  3. Select the HTML View button (looks like <>).
  4. Go to the Experience Community post with the scrollable PDF code.
  5. Copy the code and paste it into the HTML view.
  6. Make any edits you want (e.g., change width from 1200 to 100%, insert your PDF URL).
  7. Click Save.

How do I preview the embedded PDF?

Click Preview in the Survey Builder. You'll see an iframe that allows respondents to scroll through the entire PDF file.

 

Adding JavaScript (Dropdown in Form Field Example)

 

How do I add JavaScript to a question?

  1. Add a new Form Field question.
  2. Select the question.
  3. Go to the Question Behavior section on the left.
  4. Select the JavaScript option.
  5. Copy and paste the code from the Experience Community post.
  6. Click Save.

How do I preview JavaScript changes?

Click Preview to see your changes. For example, you might see a form field transformed into a dropdown menu with customizable options (defined in the JavaScript code).

 

Testing Your Custom Code

 

How do I verify that custom code is working correctly?

Always preview your survey after adding custom code to ensure:

  • CSS styling appears as expected
  • Embedded HTML elements (like PDFs) display and function properly
  • JavaScript modifications work correctly

1 reply

Forum|alt.badge.img+4
  • Level 2 ●●
  • May 12, 2026

Wow, without a doubt this is a great tip to be able to personalize surveys. I’m not using it yet because in my company the white background is part of the brand, but I’ll find a way to add a design that aligns with the brand’s image.