FORMAT RULE COLOR FOR ENUM TYPE WHEN SELECTING VALUE

It's possible configure FORMAT RULE COLOR in ENUM WHEN SELECTING value in FORM?

Solved Solved
0 5 189
1 ACCEPTED SOLUTION

A somewhat different but relevant approach to make the enum options colorful is to use images in enum with base type as image. The images can be in the root folder of the app and then only image name such as cancel.png can be used in enum. 

Suvrutt_Gurjar_0-1670477527666.png

Detail view

Suvrutt_Gurjar_1-1670477572069.png

The above approach requires the following option in Security / Options to be turned off, though. Also the approach does not work with enumlist in detail view as only file names are displayed and not images.

Suvrutt_Gurjar_2-1670477665665.png

the below sample app is also available in sample apps at Get started by using the feature samples - AppSheet Help

Images in buttons - AppSheet

Yes another approach could be to use emojis that the community has discussed in depth in the past.

View solution in original post

5 REPLIES 5

Format rules don't evaluate within forms.

I think that's indeed possible. Here's an example from a form in one of my sandbox apps. In this example, the Enum column references values from another table.

dbaum_4-1670461522740.png

 

dbaum_0-1670461220367.png

 

dbaum_1-1670461260340.png

 

dbaum_2-1670461279484.png

dbaum_3-1670461338257.png

 

Only one possible way to apply formatting on Enum type column on  form view is to set base type to REF and you create another table where you apply the format rule. Then it looks as follows at the end. 

96C58D2E-FAA1-4CBC-8CA8-5A1F4C31C4D3.GIF

โ€ƒ

A somewhat different but relevant approach to make the enum options colorful is to use images in enum with base type as image. The images can be in the root folder of the app and then only image name such as cancel.png can be used in enum. 

Suvrutt_Gurjar_0-1670477527666.png

Detail view

Suvrutt_Gurjar_1-1670477572069.png

The above approach requires the following option in Security / Options to be turned off, though. Also the approach does not work with enumlist in detail view as only file names are displayed and not images.

Suvrutt_Gurjar_2-1670477665665.png

the below sample app is also available in sample apps at Get started by using the feature samples - AppSheet Help

Images in buttons - AppSheet

Yes another approach could be to use emojis that the community has discussed in depth in the past.

Thank you all for your help! But it wasn't exactly what I wanted, but an answer is closer to what I want.

In example Images in buttons - AppSheet, something similar appears. 
When selecting an option, it appears checked.

Top Labels in this Space