API fix for get_field function and the format value parameter

Signed-off-by: Elliot Condon <e@elliotcondon.com>