How To Change Answers to Bold/Italic/Underline/Colors

Overview

This How-To will show how to change the answers color and font styling either by using the UI or by Script

Designer UI

  1. On a questions ‘Advanced’ tab, open the ‘Answer Properties’.
  2. In the table opened, you can configure each answers color, styling, and other parameters as well.

Using Script

With version 400 and higher you are able to use the User Logic in order to change the Answer/Topic Format as follows:

For Answers:

SetAnswerBold(inQ, inAnswer, true);
SetAnswerItalic(inQ, inAnswer, true);
SetAnswerUnderline(inQ, inAnswer, true);

Changing the Font Color can be done in the following ways:
SetAnswerColor(inQ, inAnswer, "red");
SetAnswerColor(inQ, inAnswer, 255);
SetAnswerColor(inQ, inAnswer, "0x00ff00");
SetAnswerColor(inQ, inAnswer, "#00ffff");
SetAnswerColor(inQ, inAnswer, "#33ff0000");

For Topics:

SetTopicBold(inQ, inAnswer, true);
SetTopicItalic(inQ, inAnswer, true);
SetTopicUnderline(inQ, inAnswer, true);

Changing the Font Color can be done in the following ways:
SetTopicColor(inQ, inAnswer, "red");
SetTopicColor(inQ, inAnswer, 255);
SetTopicColor(inQ, inAnswer, "0x00ff00");
SetTopicColor(inQ, inAnswer, "#00ffff");
SetTopicColor(inQ, inAnswer, "#33ff0000");

That’s it!

Visit us at: http://www.dooblo.net

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.