1

I have a simple visual force page with a form on a SF site. I have a pageBlockTable on the form. I would like to be able to add skill1, skill2, skill, all to the Job_tag__c field.

Here's what I attempted to do:

<apex:pageBlockTable value="{!Job__c}" var="a" styleClass="table" title="skill"  id="table" >

    <apex:column headerValue="Skill 1">
        <apex:inputField value="{!a.Job_Tag__c}"/>
    </apex:column> 

    <apex:column headerValue="Skill 2">
        <apex:inputField value="{!a.Job_Tag__c}"/>
    </apex:column> 

    <apex:column headerValue="Skill 3">
        <apex:inputField value="{!a.Job_Tag__c}"/>
    </apex:column>   

</apex:pageBlockTable> 

It's just passing the last value entered to the form. Any ideas how I can get the all the tags to populate the field job tag?

3
  • possible duplicate of How do I build a multi-select picklist UI in visualforce? – Daniel Blackhall May 23 '13 at 22:58
  • @gato, it's not clear to me what you're trying to accomplish. What is the data type of the Job_Tag__c field -- is it a multipicklist, text, or something else? What is the user experience you're trying to provide? – Benj May 24 '13 at 12:28
  • It's a text field. Trying to allow the user to have more than one input field to add job tags instead of grouping them all into one field. It's for a form, and I'm trying to make it a easy as posible for the user to separate tags. Looking at it again, I should just group them into one. The multi-select would be ok, but they're predefined values. – gato negro May 24 '13 at 15:40
1

Take a look at this question on multi-select picklist UI components in Salesforce.

It points you to this post by Pat Patterson that should help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.