Can i add data to the field on the server side ?
Can i add data to the field on the server side ?
Hi
can i manipulate the data that is being process on the server side?
for example lets say i have this field:
Field::inst( 'email' ) => this translate to : "jon@gmail.com" on the client side.
and i want something like this
Field::inst( 'email' )."test" => this translate to : "jon@gmail.comtest" on the client side.
I know i can do it with the js in client side, but it would be much better to resolve it on the server side (php).
Thanks
This question has an accepted answers - jump to answer
Answers
i got it
->getFormatter( function ( $val, $data, $opts ) {
return $val.'x' ;
})