Create a new field type

By: Peter S | Asked: 01/13/2025
ForumsCategory: Code HelpCreate a new field type
Peter S asked 2 days ago

Hi, 

I am trying to create a new field type.

It should function the same as the existing text input field. However, I am not use how to set this up.

I am looking at the code formidable provides and it is simple to add the field, but it has not text input nor a read only function.

https://formidableforms.com/knowledgebase/add-a-new-field/

add_filter( 'frm_available_fields', 'add_basic_field' );
function add_basic_field( $fields ) {
    $fields['new-type'] = array(
        'name' => 'My Field',
        'icon' => 'frm_icon_font frm_pencil_icon', // Set the class for a custom icon here.
    );

    return $fields;
}

Any help would be appreciated. Thanks!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right