• ChandanBiswas
  • NEWBIE
  • 0 Points
  • Member since 2016
  • Salesforce Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 7
    Replies
Here the account shouls be a self lookup with account. Need to display related contact and opportunity if I select any accout(lookup) in a VF page. Can anyone help with the code please.
Here the account shouls be a self lookup with account. Need to display related contact and opportunity if I select any accout(lookup) in a VF page. Can anyone help with the code please.
Hi,

 I have 2 profiles  profile 1 and profile 2, Here profile 1 data users don't want to see profile 2 users data,at the same time e profile 2 users data don't want to view by profile 1 data users.how can we achieve it.

 I really appreciate quick responses.

Thanks
Hi all,
I want to show list of notes and related account names on vf page.
but notes dont have field account name.
how can i get the name of account from Notes??
 
Hi Gurus,

i've created a VF and Apex page to display a form on a Site that is linked to a custom object in Salesforce. After the form is completed, the user is then redirected to my website. 

However, how can I add a "Thank you, you have successfully submitted the form" page before the user is redirected to my website? 

Please if you have an idea of how this can be achieved, please let me know.



This is my visualforce page: 



<apex:page standardController="Turndown__c" sidebar="false" showHeader="true" extensions="extencntrl" >
    <apex:form >
           <apex:pageBlock title="Documented Turndowns" id="turndown_list">
                
             <apex:pageBlockSection columns="1" >
                 
                
                 <!-- to remove the header, but keep the fields' help texts -->
                 <style type="text/css">
                     .bPageHeader {display: none;}
                     </style>
              
                 
            <!-- Inputfields --> 
            <apex:inputfield value="{! Turndown__c.Account__c }"/>
            <apex:inputfield value="{! Turndown__c.Phone_Number__c }"/>
            <apex:inputfield value="{! Turndown__c.Region__c }"/>

            </apex:pageBlockSection>
            
                        <apex:pageBlockButtons >  
                                <apex:actionStatus id="go">
                                    <apex:facet name="stop">                  
                                        <apex:commandButton value="Save" action="{!Save}" status="go" disabled="false" rerender="go"/>
                                                </apex:facet>
                                                <apex:facet name="start">
                                       <apex:commandButton status="go" value="Saving..." disabled="true" />
                                    </apex:facet>
                                </apex:actionStatus>
                        </apex:pageBlockButtons>       
             
                 </apex:pageBlock>
    </apex:form>
</apex:page>





apex code:


public with sharing class extencntrl{
    
    Turndown__c turnd;
    public extencntrl(ApexPages.StandardController controller) {
        this.turnd= (Turndown__c)controller.getRecord();
    }
    
    public pageReference save()
        {
            Insert turnd; // steps to save your record.
            Pagereference pgref = New PageReference(Label.WebsiteURL);
            return pgref;
        }
}


Thank you very much!
Hi,
I have created a new filed wiyh the name and replace that with the previous field but when i am trying to preview the page I am able to see the Name of the field but not able to enter any values(pick the values from the list).The text box(picklist box) which contains the values is not visible, my new and old fields both are of picklist type.
 I am new to salesforce Please help.