Expand my Community achievements bar.

Autofill fields with text based on the calculation of another field

Avatar

Former Community Member

I have added a number of fields to give me a total, I would like to auto fill my next field based on the total with text and colour code it based on the content in the total field how can I do this.

e.g. my total field is 15 so my next field would populate with Moderate and colour the field orange, is this possible?

1 Reply

Avatar

Level 2

Example:

if(Textfield1.rawValue==15)

{

Textfield2.rawValue="Moderate";     //Setting value of Textfield2 to Moderate since Textfield1 is 15

this.fillColor="255,140,0";                //fillColor is used to set the field color

}