function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Two Fields Combined

I would like to combine two custom fields ive created into one area of a page. It is for the units of a value that is entered into a text box. To better explain, i have a capacity field where the person enters in a numeric value but the value can be in 3 possible units of measure. I want a dropdown list immediately to the right of the field that has these units in it. How can I do this?
Message Edited by Margiro on 04-30-2009 01:54 PM
At the moment this is impossible with standard features. You would need a Visual Force page for this.

It is a visual force page. Im using it on a site. My code looks like this:

<apex:page sidebar="false" standardController="lead"   showHeader="false" extensions="GLeadExtension"> 
<apex:composition template="{!$Site.Template}">
<apex:define name="body">
<h1>Conveyor Application Request Part 3/3</h1>
<apex:form >
<apex:pageBlock >

<apex:pageBlockButtons >
<apex:commandButton action="{!step4}" value="Next"/>
<apex:commandButton action="{!step2}" value="Back"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>

<apex:pageBlockSection title="Installation - Additional Information" columns="2" collapsible="false">
<apex:inputField value="{!Lead.Capacity__c}"/>
<apex:inputField value="{!Lead.Total_conveying_distance__c}"/>
<apex:inputField value="{!Lead.Horizontal__c}"/>
<apex:inputField value="{!Lead.Vertical__c}"/>
<apex:inputField value="{!Lead.Number_of_bends__c}"/>
<apex:inputField value="{!Lead.Type_of_pipe_system__c}"/>
<apex:inputField value="{!Lead.Product_picked_up_from__c}"/>
<apex:inputField value="{!Lead.If_Others__c}"/>
<apex:inputField value="{!Lead.Product_Discharge__c}"/>
<apex:inputField value="{!Lead.If_Others2__c}"/>
<apex:inputField value="{!Lead.The_installation_is__c}"/>
<apex:inputField value="{!Lead.The_operation_is__c}"/>
<apex:inputField value="{!Lead.Max_Headroom__c}"/>
<apex:inputField value="{!Lead.Other_information__c}"/>

I want to add another field to one of these lines of imputs so it shows up right next to it, not in the next column. Is this still impossible?