Custom Fields

Build a custom field by composing multiple Feathery elements together.

While Feathery does allow you to specify custom components, you can also create custom fields directly from the visual editor by composing multiple Feathery elements.

Examples

Button group with custom layout

If the default button group field layout doesn't work for your use case, you can build your own field with a custom layout.

The field above is built with individual buttons configured with the Save Value to Field click action. Specify the custom value to store on click, and then connect the button to a field where the value will be stored. If you want the user to only be able to select a single button, you can re-use the same field across all of the buttons in the field. If you want multi-select behavior, use a different field per button so they don't override each other on click.

Multi-select button group with card layout

By setting the background color of a container and using the Save Value to Field click action, you are able to make a clickable card group consisting of any elements you desire. In the image above the first three cards are made with a checkbox field and a few text elements. The last card is just a checkbox and a text field.

Dynamic Number of Buttons in Group

Branching off of the above example, you can create a single container and set it as repeating to allow it to repeat a dynamic number of times. Then, you can set the click action on the container to Save Value to Field and make sure to set the save field value to either a repeating field or a hidden field that contains an array of values.

Then, set the number of container repeats and set the save field value to an array with the same number of repeats. Now, when each repeating container is clicked, it will save the value corresponding to the same index in the save field array.

By default this is a multiselect action - each repeating container can be selected independently. You can turn on the Single Select option for the Save Value to Field action to ensure only one repeat of the field can be selected at once.

Last updated