form field label text

By: Matt Grimes | Asked: 07/13/2022
ForumsCategory: General questionsform field label text
Matt Grimes asked 2 years ago

i am using this hook frm_after_create_entry
the docs show you how to get the field data
but how does one get the field label for that meta item?
IE: my field label is "How to contact"
the item meta is email, phone
I can get email and phone, i am after "How to contact"
i tried FrmField::get_key_by_id but it returns the key name

1 Answers
Best Answer
Bobby Clapp answered 2 years ago
$field_info = FrmField::getOne( $atts['field_id'] ); return $field_info->description; As per
Matt Grimes replied 2 years ago

returned the field description not the actual label text

Bobby Clapp replied 2 years ago

Ah yes, how about return $field_info->name; ?


Matt Grimes replied 2 years ago


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