Change the output of a field type using its id
-
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)
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.