+ Start a Discussion
Gaurav AgnihotriGaurav Agnihotri 

Bring Button and input text together in page layout.

Hi,
I am working on a very simple visual force page
 
<apex:page standardController="Case" extensions="JiraSearchIssue" sidebar="false">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection collapsible="False" columns="3" > 
                <apex:commandButton action="{!Execute}" value="Search" />
                <apex:inputText value="{!searchString}" label="Search for Jira Issues"/>
            </apex:pageBlockSection>      
        </apex:pageBlock> 
    </apex:form>
</apex:page>
In the output both command button and inputtext are way apart on the page layout. I was wondering if there is a way to bring them next to each other as shown in the pictureUser-added image
 
Pramodh KumarPramodh Kumar
<apex:pageBlock>
      <apex:commandButton action="{!Execute}" value="Search" />
      Search for Jira Issues : <apex:inputText/>
</apex:pageBlock>
if you pageblocksection, by default it will 2 column.

To Override pageBlockSection you have to create table.



Let know if you still having any issues.

Thanks,
pRAMODH.