Field List with value data

Dear All,
i have forms that some field is List Field.

the default list field like the picture below:

but i want list field is autofill with the value like the picture below:

i already read the doc about this in here https://docs.gravityforms.com/gf_field_list/

the code in that doc is like example below:
listfield2

but i don’t know, how or where i must put thats code…i already try in function.php but not working…

please help…

I recommend opening a support ticket for the quickest attention:

Also, this is the proper filter to use to dynamically populate a list field:

That will work if you give your list field a dynamic population parameter name of ‘list’. I think the documentation you linked to is the documentation for the field, not how to dynamically populate it.