I just ran into the same thing using:
$value = get_gf_field_value($leadid, 22, 1);
doesn’t get the $leadid value on the single entry pages. It works fine if you specify the id as a number. I want to create a link dynamically for example: domain.com/fieldvalue instead of outputting the value of the field.
Any ideas?