+ Start a Discussion
Markey1Markey1 

Concatenate Unbound Fields - Get values of inputTextArea Fields and Concatenate

SFDC has a limit of 25 long text fields per object. Unfortunately, our project requires 40 long text fields. So, I am trying to take the values of two text area fields (unbound) and concatenate their values into a custom object long text field (bound) to stay within the SFDC limits. At this point, I am completely lost... can this be accomplished entirely within the Visualforce tags or should I be using a controller extension? How do I reference the unbound fields, meaning fields that are not directly related to the standard controller? Is Ajax the only option? Rerender?

 

If a standard controller extension is required, any help with the code to get me started would be great. I am a Apex/Visualforce noob, so any help is much appreciated in regards to examples, links, etc.

 

How do I get the two values from 'test_us001vereq' and 'test_us001veres' concatenated into the custom object field 'test_us001'?

 

<!-- unbound field test_us001vereq -->
<apex:pageBlockSectionItem >
  <apex:outputLabel value="US001_VEReq" for="test_us001vereq" />
  <apex:inputTextarea id="test_us001vereq"/>
</apex:pageBlockSectionItem>

<!-- unbound field test_us001veres -->             
<apex:pageBlockSectionItem >
  <apex:outputLabel value="US001_VERes" for="test_us001veres" />
  <apex:inputTextarea id="test_us001veres" />
</apex:pageBlockSectionItem>
      
<!-- bound field test_us001 -->
<apex:pageBlockSectionItem >
  <apex:outputLabel value="US001" for="test_us001" />
  <apex:inputTextArea value="{!AESK_Certification__c.US001__c}" id="test_us001" />
</apex:pageBlockSectionItem>