I used Drupal 7 computed fields to calculate weight reduction. That is what I present have. Which works in a way however solely the place Drupal Developer consumer inputs their preliminary weight and subtracts their present weight to trace Drupal Developer complete weight reduction at Drupal Developer time of Drupal Developer enter. However I want it to reference their preliminary weight from their consumer profile in order that they solely must enter their present weight. One step course of versus having to all the time enter Drupal Developer information that already exists. How can I obtain this?
Present Code which works nice however two fields must be stuffed in. Must reference area in consumer profile.
$entity_field[0]['value'] = ($entity->field_iweight['und'][0]['value']) - ($entity->field_current_weight_['und'][0]['value']);