public function getFormattedValue($value)
{
if($this->field['field_id']=='any_specific_id' && strpos($value, ',') !== false ){
$output = str_replace(',', '<br />', $value);
return $output;
}
return parent::getFormattedValue($value);
}
I didn't think about setting it up like that with the specific field id in an if statement. Looks like I can move forward with setting up my forum with that now as without that, it has undesirable effects on other inputs.Please let me know if I'm doing something wrong here.
We use essential cookies to make this site work, and optional cookies to enhance your experience.