ENUM Button with customise colur

Hi There

Is it possible to have the APPROVED button green when selected or the DISAPPROVED button is red when selected? Or in any feature in appsheet can do that? or maybe the font colour change?

desmond_lee_0-1726000157970.png

 

0 6 242
6 REPLIES 6

You could explore a few options. There are three options shown below in the screenshot of the form below.

Suvrutt_Gurjar_0-1726024573619.png

Option 1

You could add emojis to the "Approved/ Disapproved enum options as shown below. Enum base type is "Text"

Suvrutt_Gurjar_1-1726024684300.png

Option 2

You could have the enum option as dropdown instead of button and apply format rules. Format rules work in forms in desktop view after the enum selection is made.

Suvrutt_Gurjar_2-1726025056900.png

 

Option 3

You could use images for approved/disapproved and use those in enum option with base type as image. You need to store the image files in the same folder in G drive where the backend G sheet is stored.

Suvrutt_Gurjar_3-1726025242249.png

The images are stored as follows in G drive - in the same folder where the backend G sheet resides.

Suvrutt_Gurjar_4-1726025362999.png

Please be aware that in option 3 , in enum with base type as image, you need to deselect the following setting in security options. So you will need to take the call before using enum with base type as image option, if disabling this security setting is acceptable for your app, company policies etc.  Please read the associated comment with the setting before disabling.

Suvrutt_Gurjar_0-1726027285433.png

 

 

 

 

 

I have not try this due to so busy in other apps development. I will when I am free. Thanks anywhere

I don't think it is possible while choosing, but it's possible to give them icon color identity while choosing and the font color will change after form submitted using format rule. 

Screenshot 2024-10-06 at 14.35.17.png

โ€ƒ

Screenshot 2024-10-06 at 14.35.37.png

โ€ƒ

Aurelien
Google Developer Expert
Google Developer Expert

Hi @desmond_lee 

I addition to @Suvrutt_Gurjar 's tip, here is another one:

use Table STATUS and set format rules on this one:

Aurelien_0-1728300967409.pngAurelien_1-1728300983021.png

Aurelien_2-1728301014838.png

 

Then, set the column Status in your table with type Ref, source table STATUS:

Aurelien_3-1728301080123.png

Here is the result:

Aurelien_4-1728301148022.png

 

Yes, passing on format rules through reference column is another good option @Aurelien. ๐Ÿ‘

Thanks I will try this later

Top Labels in this Space