Zum Hauptinhalt gehen

Is there ways to introduce colored text into the forms, markdown?

Kommentare

2 Kommentare

  • Permanently deleted user

    Hi Ryan,

     

    You can achieve this using the "InjectCSS" activity. 

    To do this for a check group, add the InjectCSS activity in the load event for this element.

    Then, if you want to target the first check box in the list and, for example, make the text red and the background yellow, add this to the Content property of the InjectCSS activity:

     

     

    div.CheckGroup.gcx-forms-checkGroup1 div.items label:nth-child(1) div p

    {color:red;}

     

    div.CheckGroup.gcx-forms-checkGroup1 div.items label:nth-child(1)  

    {background-color:yellow;}

     

     

    This is assuming you are working on CheckGroup1 etc.

    It was difficult to figure out how to target individual items in the group, but it looks like "nth-child" works well for this. Other elements are easier to target if they have individual ids or classes.

     

    I hope this works,

    Marion.

     

    0
  • Darryl Klassen

    Thanks Marion. Implemented this on a radioGroup and it worked great. We were trying to hack something together once the code was downloaded and served out. This works way better, life saver!!! Award 100pts

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.