You need to sign in to do that
Don't have an account?
Christos Kolonis
Set two buttons next to user input in Visualforce Page
Hello!
I am building a visualforce page which is a form to create a record in a custom object. The form is like this:
I need to allign next to recipient field two buttons, a search and a clear. I tried several things but i cannot make it. Any ideas? Thank you!!
My Visualforce Code:
I am building a visualforce page which is a form to create a record in a custom object. The form is like this:
I need to allign next to recipient field two buttons, a search and a clear. I tried several things but i cannot make it. Any ideas? Thank you!!
My Visualforce Code:
<apex:form> <apex:pageBlock id="alladdr"> <apex:pageblockSection > <apex:pageMessages /> </apex:pageblockSection> <apex:pageBlockSection title="Information"> <apex:outputField value="{!account.Name}" html-disabled="true"/> <apex:inputText value="{!searchContact}" label="Recipient" style="float:left" /> <apex:commandButton value="{!$Label.el_Search}" action="{!searchContact}" reRender="contactSection"/> <apex:commandButton value="{!$Label.el_Clear}" action="{!clearContactResults}" reRender="contactSection" /> <apex:inputField value="{!bAccount.el__dd__c}"/> <apex:inputField value="{!bAccount.el_Email_Addresses__c}" /> <apex:inputField value="{!bAccount.el_ddd__c}"/> <apex:inputField value="{!bAccount.el__dd__c}"/> <apex:inputField value="{!bAccount.el_ddd__c}"/> <apex:inputField value="{!bAccount.el_dd__c}"/> <apex:inputField value="{!bAccount.el_ddd__c}"/> <apex:inputField value="{!bAccount.el_ddd__c}"/> <apex:inputField value="{!bAccount.el_dd__c}"/> <apex:inputField value="{!bAccount.el_Active__c}"/> </apex:pageBlockSection>
Please follow below similar thread to implement a lookup or search functionality with custom fields on visualforce page:
https://developer.salesforce.com/forums/?id=906F00000008pxcIAA
You might want to utilize the similar logic for the clear button as well.
Hope above information helps. Please mark as Best Answer so that it can help others in future.
Thanks.
Really thank you for replying! I don't need to implement a lookup but to have this text field and the buttons in order to search or clear my results. On click of the search i populate some columns with the returned results.