---
title: "PCF - Radio Buttons"
canonical: "https://support.appfire.com/space/PSJ/1589019995/PCF%20-%20Radio%20Buttons"
format: markdown
---
> Macro (aura-html)

> Macro (button-handy)



---

## Examples

| **Example** | **Sample script** | **Sample display output** |
| --- | --- | --- |
| Using PCF - Radio Buttons with SIL data source | This script retrieves all available project keys and adds them as options to the custom field.<br>```
string [] projects = allProjects();
return projects;
``` | "DEMO (Demo Project)"  
"TEST (Test Project)"  
"PROD (Production Project)" |
| Using PCF - Radio Buttons with SQL data source | This query retrieves all project keys from the database.<br>> ℹ️ Before using SQL data source, ensure you've configured the JNDI settings as detailed in the [SQL data source documentation](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/1589019609).<br>```
select pkey from project;
``` | "DEMO (Demo Project)"  
"TEST (Test Project)"  
"PROD (Production Project)" |