# additionalfield with picklist values button code

Additionalfields allows you to display fields from the template detail page as custom columns on the "Select template(s)" page that is displayed after a user clicks the **S-Docs** button. Button code for Additionalfields with picklist values is shown below.

Instructions

```
{!URLFOR('/apex/SDOC__SDCreate1', null, [[id=Opportunity.Id](http://id=Opportunity.Id),Object='Opportunity',useExistingNoContactRecord='true',AdditionalFields='Market__c:'+TEXT(Opportunity.Market__c)+','+'Language__c:'+TEXT(Opportunity.Language__c)]])}
```

{% hint style="info" %}
Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sdocs.com/sdocs/maintenance-and-troubleshooting/legacy-workflows/visualforce-button-code-legacy/additionalfield-with-picklist-values-button-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
