I know we can render a reference field as a picklist, but is there a way to render a reference field as radio buttons instead? I have a filtered lookup relationship that I would like to display each value as a radio button.
I created a very basic custom field renderer, as a proof of concept, that appends an HTML radio button form to the field.element. This works as expected, but I can’t figure out how to access the filtered reference records. If I can get the reference records out I could dynamically add radio buttons for each record and then append the HTML to the element.
There might be a better way than the above approach and if there is I am all ears!
Question
How to create a custom field renderer to render a reference field as radio buttons?

This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.