How to change the color of a String var in UIpath

I want the change the font color of the variable passMessage so its GREEN. I have checked a lot answers in the forum but none seem to address my unique situation.

The variable properties does not have the font property and this workflow is not working with excel.

Suggestions wiill be appreciated.

1 Like

Hi @Yomi_Oluwadara

What are you exactly trying to do . Can you please specify.

Regards

Hi,

String class doesn’t have any information for format including font color. So, it’s necessary to use FormatCells activity to change font color in specific cell as the following.

Regards,

1 Like

Hi,

So far we can’t change variable color.

But we can use
Custom Input Activity-- to insert image in message box. There you can pass green color image.

Thanks

@Parvathy and @Yoichi ,

Thank you both. As seen below, I want the string in the highlight to come out in GREEN.

image

I tried @Yoichi but did not get the expected result.
Attached is my original workflow.

assertOnAggregation.zip (5.0 KB)

Hello @Yomi_Oluwadara

I think you were looking for UiPath Testing activities (Verify expression activity), right?

image

Hi @Yomi_Oluwadara

Check the below zip file
assertOnAggregation.zip (89.5 KB)

Output:

Hope it helps!!

@Dominic
Thanks but it seems that you did not attach the work flow you where you used the verify expression. In the one you attached, the font is not green.
Could you please re-attach?

Hi @Yomi_Oluwadara

Check out the TestCase.xaml. You will find the Verify Control Attribute activity attached. Below image will give you a better understanding:

Regards

@Dominic Thanks for that clarifications. However this solution might still not work for my use case because:

  • My workflow is a Library that once deployed will be used as a custom activity by other processes, therefore the logic to change the color cannot be in the testcase.

That is why I was wondering if there is anyway to change the font in the main sequence. I tried @Yoichi workflow, but did not get it to work.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.