The + add field link appears in Custom Code dialog that are either inside of a Collection List or in a Template page. In other words, when the Custom Code element is in a dynamic / CMS context. Before allowing you to select a field, it needs to know in what Collection to look for.