It says it wants to see the colour value as a string. So in your case, you can use a CASE THEN ELSE END statement to get there.
CASE WHEN "Type" = 'SL' THEN '255,0,0,100' END There the numbers represent 'red,green,blue,alpha' Alpha is the transparency value. 0 is completely transparent and 100 is not transparent. On Tue, Feb 7, 2017 at 9:08 PM, Springfield Harrison <stellar...@gmail.com> wrote: > Hello, > > Attempting to use the Data Defined function (tool?). > > The following configuration has no effect; it may be looking for a > colour input. This DD is to set the background colour on a label where > Type = SL. > > If I use this function on bold Text, it works but that requires no > input, it just toggles. > > Where am I supposed to enter the "Expected Input" colour > specifications? > > Data defined override > Active: yes (ctrl|right-click toggles) > Expected input: > string [r,g,b,a] as int 0-255 > Valid input types: > string > Current definition (expression): > "Type" = 'SL' > > Thanks very much . . . . > > Cheers . . . . . Springfield Harrison > > > > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user