• Resolved nanny7

    (@nanny7)


    Hi I am trying to add a <td></td> around a checkbox div. The reason why is I am using a lot of checkboxes and have datatables to sort them within the form.
    It all works except the checkbox div needs that td around it.
    I found this:

    
    add_filter( 'frmpro_fields_replace_shortcodes', 'display_field_value_with_shortcode', 10, 4 );
    function display_field_value_with_shortcode( $value, $tag, $atts, $field ) {
        if ( $field->type != 'signature' ) {
            return $value;
        }
    
        $value = '<div class="my_custom_class">' . $value . '</div>';
    	
        return $value;
    }
    

    I know that won’t work as I need a function. So where can I find things like this to work it out:
    FrmEntryMeta::get_entry_metas_for_field
    FrmEntryMeta::get_entry_meta_by_field
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kristineds

    (@kristineds)

    Hi @nanny7,

    I’m afraid to help with writing, customizing, and debugging custom code isn’t covered by our support. You can ask for help with this from our community if you’d like, or find paid help there as well. Here’s a link to join the Slack group. https://formidableforms.com/join-slack/

    Thread Starter nanny7

    (@nanny7)

    Nah thanks I solved it easily using

    
     $( ".club .frm_checkbox" ).wrap( "<td></td>" );
    

    I find I get no answers on Slack group and it is hard to find other peoples solved issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change the output of a field type using its id’ is closed to new replies.