I want to set a field within my custom element with a value, calculated upon other fields of the custom element with this callback.
How do I address the fields? $dc->fieldname doesn't work.
Thanks for your help
sorry, I don't get this to work
is it possible that a textfield B is predefine with an calculated value as soon as a value is changed in field A?
if yes, could someone give me a hint how to do it?
I can (read) access every field with \Input::post('rsce_field_LISTNAME__'.$i.'__FIELDNAME'); now, but how do I change the value? If I'm in the save_callback function I'm only able to return a value for the actual field, not for all listelements.
Is there a way to pass the number/index of the listelement to the save_callback?
the goal is to calculate the following:
rsce_field_LISTNAME__0__FIELDNAME1' = function (rsce_field_LISTNAME__0__FIELDNAME2)