Configuring Background Colors
There are two ways two set the background color of a field.
Via Form Rules
One is via a field rule in the QFEManager site. Instructions for this can be found on the How To Setup Form Rules page.
Configuring AddFieldToForm method
Another way is by adding the form manually via AddFieldToForm method.
This method receives a FormField object with all available attributes to be set up for a field. Two things are really only needed to be configured.
- First is that the FieldName property is required.
- Second, set the FieldBackgroundColor property in order to set the background color. Make sure the value is a hex code or hexadecimal number.
- (Optional) The default color for the FieldBackgroundColor can be set by removing the entire line containing .FieldBackgroundColor = "#FF0000"
Examples:
VBNET:
 objQFE.AddFieldToForm(New FormField() With {
                                 .FieldName = "1own.M.City",                                 .FieldBackgroundColor = "#FF0000"                                  })
C#:
objQFE.AddFieldToForm(new FormField {       FieldName = "1own.M.City",       FieldBackgroundColor = "#FF0000"});
With the above syntax for the AddFieldToForm method, your output should match the screenshot below.
Â
For help regarding Quik! Forms and the Quik! API
Email: support@quikforms.com | Phone: (877) 456-QUIK