Can i add data to the field on the server side ?

Can i add data to the field on the server side ?

ziv@kpmbro.comziv@kpmbro.com Posts: 73Questions: 28Answers: 4

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

  • ziv@kpmbro.comziv@kpmbro.com Posts: 73Questions: 28Answers: 4
    Answer ✓

    i got it

    ->getFormatter( function ( $val, $data, $opts ) {
    return $val.'x' ;
    })

    :)

This discussion has been closed.