PricingBlog

dynamically set Color variables not being applied

  • jaredgibb_97792-1205575855212863550

    jaredgibb

    1 year ago

    I am trying to use the value from an api call to control the color of a text within a div.

    I have set a color variable to assume the color of a value that comes in via an api call. i use that color variable as the text color for the div. no color change occurs.

    https://www.loom.com/share/0fd5ce4a097a478584ded659d9bcd9a1
    1205575856055914587-Screenshot_2024-02-09_at_1.06.45_PM.png
  • jaredgibb_97792-1205576632346345522

    jaredgibb

    1 year ago

    i have also tried setting the var name to be

    Accent Color
    accent_color
    accent-color
  • lucasg-1205717301945565194

    Lucas G

    1 year ago

    I don't know if you can have a space in the name for style variables
  • try going back to accent-color and resetting it
  • lucasg-1205717667600924773

    Lucas G

    1 year ago

    By resetting I mean selecting it again in the color variable dropdown
  • gazinhio-1206214583434346506

    gazinhio

    1 year ago

    Try taking the ID node out of the formula and putting the hash directly into the first input of the Concatenate