Concat text + field + text in hook
Posted: 2017-11-01 14:08
Hello, sorry for banal question
I would like to aucomatic insert concat value in a field acting on "before insert section" on hook.
At the same time I need that this field is read only for users...
SOME_TEXT + ['field1_value'] + SOME_OTHER_TEXT
I have tried many ways like:
$data['field'] = "TEXT" & $data['field1_value'] & "TEXT2" ;
but nothing.
Could you please help me?
I would like to aucomatic insert concat value in a field acting on "before insert section" on hook.
At the same time I need that this field is read only for users...
SOME_TEXT + ['field1_value'] + SOME_OTHER_TEXT
I have tried many ways like:
$data['field'] = "TEXT" & $data['field1_value'] & "TEXT2" ;
but nothing.
Could you please help me?