Custom Formatting Function

AndyB

Member
Eugenio,

I was trying to format a field to display, as per your example in custom_functions.php, in red.
I wrote as per you example:-

function dadabik_format_GoingWheelSize($value){

return '<span style="color:red">'.$value.'</span>';
}

in the custom_functions.php file and then changed the field in forms configurator to say dadabik_format_GoingWheelSize

but the result was that the value in the form dissapeared completely instead of appearing in Red.
What did I do wrong?
I am not a php coder so could easily have misunderstood your example.

Thanks

Andy
 

eugenio

Administrator
Staff member
Everything looks fine. Is the dadabik_format_GoingWheelSize value in the "Custom formatting function" parameter (form configurator)? If yes, I am clueless and I would need to see the application to understand, is it available online? If yes, send credentials to support@dadabik.org.
 

AndyB

Member
Eugenio,

Yes this entry was in the custom formatting function.

I will email you a login shortly

Regards

Andy
 
Top