You need to sign in to do that
Don't have an account?
![Aurora Ganguly 10 Aurora Ganguly 10](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
oppurtunity vf page
hi All,
I have made a oppurtunity page as vf page , but it is not responsive in simulator, all the fields are not aligned,
just see the effect.
i have bootstrap also,![User-added image](/forums/servlet/rtaImage?eid=9060G000000BdwG&feoid=Body&refid=0EM0G000000RbYe)
plz reply ,
I have made a oppurtunity page as vf page , but it is not responsive in simulator, all the fields are not aligned,
just see the effect.
i have bootstrap also,
plz reply ,
All Answers
could u pls post your code here, it will help u to resolve the issue
Regards
vijay
testingsfdc77@gmail.com
<head>
<title>Premiere Irrigation</title>
<!-- meta -->
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=maximum width, initial-scale=1, user-scalable=no"/>
<!-- css -->
<apex:stylesheet value="{!URLFOR($Resource.main, 'main/css/bootstrap.min.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.asset, 'asset/css/bootstrap.min.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.main, 'main/css/bootstrap-theme.min.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.main, 'main/css/font-awesome.min.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.main, 'main/css/main.css')}"/>
<!-- google font -->
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Kreon:300,400,700'/>
<!-- js -->
<apex:stylesheet value="{!URLFOR($Resource.main, 'main/js/bootstrap.min.js')}"/>
<apex:stylesheet value="{!URLFOR($Resource.main, 'main/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js')}"/>
</head>
<apex:form >
<apex:pageMessages ></apex:pageMessages>
<!-- <apex:sectionHeader subtitle="opportunity Edit" title="New Opportunity" />-->
<apex:pageBlock title="Opportunity Edit" id="pb" mode="Edit" >
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!Save}" />
<apex:commandButton value="Cancel" action="{!Cancel}" />
</apex:pageBlockButtons>
<apex:pageBlockSection title="Opprtunity Information" >
<apex:inputField value="{!op.Name}" required="true" />
<apex:inputField value="{!op.State_Name__c}" />
<apex:inputField value="{!op.Farmer_Registration_completed__c}" />
<apex:inputField value="{!op.Name_of_Subsidy_Scheme__c}" />
<apex:inputField value="{!op.Type_of_MIS__c}" />
<apex:inputField value="{!op.Stage__c}" />
<apex:inputField value="{!op.Department_Name__c}" />
</apex:pageBlockSection>
<apex:actionRegion >
<apex:outputPanel id="block">
<!--<apex:panelGrid width="100%" columns="3" title="Survey ,Design Details">-->
<apex:pageBlockSection title="Survey Details" id="pbs2" columns="1">
<apex:inputField value="{!op.Survey_Done__c}">
<apex:actionSupport event="onchange" rerender="block" />
</apex:inputField>
<apex:inputField value="{!op.If_Yes_Date_of_Survey__c}" rendered="{!(op.Survey_Done__c='Yes')}"/>
<apex:inputField value="{!op.Type_of_survey__c}" rendered="{!(op.Survey_Done__c='Yes')}" />
<apex:inputField value="{!op.Date_of_Survey_report_sent_for_Auto_CAD__c }" rendered="{!(op.Survey_Done__c='Yes')}" />
<apex:inputField value="{!op.If_NO_reason_for_not_doing_survey__c}" rendered="{!(op.Survey_Done__c='No')}" />
</apex:pageBlockSection>
<apex:pageBlockSection title="Design" columns="1" >
<apex:inputField value="{!op.Design_Done__c}" >
<apex:actionSupport event="onchange" rerender="block" />
</apex:inputField>
<apex:inputField value="{!op.If_Yes_Date_of_design__c}" rendered="{!(op.Design_Done__c='Yes')}" />
</apex:pageBlockSection>
<apex:pageBlockSection title="BOQ" columns="1">
<apex:inputField value="{!op.BOQ_prepared__c}" >
<apex:actionSupport event="onchange" rerender="block" />
</apex:inputField>
<apex:inputField value="{!op.BOQ_Date__c}" rendered="{!(op.BOQ_prepared__c='Yes')}" />
<apex:inputField value="{!op.BOQ_NO__c}" rendered="{!(op.BOQ_prepared__c='Yes')}" />
</apex:pageBlockSection>
<!--</apex:panelGrid>-->
<apex:pageBlockSection title="Dealer Information" id="pbs6">
<apex:inputField value="{!op.Name_of_Dealer_Attached__c}" />
<apex:inputField value="{!op.Contact_person_Dealer__c}" />
<apex:inputField value="{!op.Mobile_No__c}" />
<apex:inputField value="{!op.Farmer_share_collected__c}">
<apex:actionSupport event="onchange" rerender="pbs6" />
</apex:inputfield>
<apex:inputField value="{!op.Procceding_Work_order_Pre_sanctions_Date__c}" />
<apex:inputField value="{!op.If_YES__c}" rendered="{!(op.Farmer_share_collected__c='Yes')}" />
<apex:inputField value="{!op.Collection_of_Advance_Value__c}" rendered="{!(op.Farmer_share_collected__c='paid')}" />
<apex:inputField value="{!op.Submission_of_FS_along_with_Documents_to__c}" />
<apex:inputField value="{!op.Procceding_work_order_presanction_No__c}" />
<apex:inputField value="{!op.If_Collection_of_Advance__c}">
<apex:actionSupport event="onchange" rerender="pbs6" />
</apex:inputField>
<apex:inputField value="{!op.Procceding_Work_order_Presanctions_Value__c}" />
<apex:inputField value="{!op.Collection_of_Advance_Date__c}" />
</apex:pageBlockSection>
<apex:pageBlockSection title="Required CheckList" id="pbs4">
<apex:inputField value="{!op.Supply__c}" />
<apex:inputField value="{!op.Uploading_done__c}" >
<apex:actionSupport event="onchange" rerender="pbs4" />
</apex:inputField>
<apex:inputField value="{!op.Installation_Done__c}" >
<apex:actionSupport event="onchange" rerender="pbs4" />
</apex:inputField>
<apex:inputField value="{!op.Uploading_date__c}" rendered="{!(op.Uploading_done__c='Yes')}"/>
<apex:inputField value="{!op.Installation_Date__c}" rendered="{!(op.Installation_Done__c='Yes')}"/>
<apex:inputField value="{!op.Receipt_of_50_payment_Date__c}" rendered="{!(op.Installation_Done__c='Yes')}"/>
<apex:inputField value="{!op.If_NO_Reason_for_delay_Why_Open__c}" rendered="{!(op.Inspection_Done__c='No')}" />
<apex:inputField value="{!op.Receipt_of_50_payment_Amount__c}" rendered="{!(op.Uploading_done__c='Yes')}"/>
<apex:inputField value="{!op.Inspection_Done__c}" >
<apex:actionSupport event="onchange" rerender="pbs4" />
</apex:inputField>
<apex:inputField value="{!op.If_NOT_uploaded_Reason_for_delay_Why__c}" rendered="{!(op.Uploading_done__c='No')}" />
<apex:inputField value="{!op.Receipt_of_40_payment_Date__c}" rendered="{!(op.Inspection_Done__c='Yes')}"/>
<apex:inputField value="{!op.Retention_Date__c}" />
<apex:inputField value="{!op.Receipt_of_40_payment_Amount__c}" rendered="{!(op.Inspection_Done__c='Yes')}"/>
<apex:inputField value="{!op.Retention_Amount__c}" />
<apex:inputField value="{!op.If_NO_Reason_for_the_delay_Why_Open__c}" rendered="{!(op.Installation_Done__c='No')}" />
</apex:pageBlockSection>
</apex:outputPanel>
</apex:actionRegion>
</apex:pageBlock>
</apex:form>
</apex:page>
here is the code, when am doing preview of the page , it is ok , wide view, but when am moving to the developer tools and viewing in mobile view say GalaxyS5 etc, at that time it not coming . same for the simulator it is not in that screen , the scroll is coming ..
you need to apply the bootstrap classes
See the sample code below
Regards
vijay
testingsfdc77@gmail.com
I applied ur code, the first portion and it became responsive , when i am viewing in the deveolper tools in any mobile view, but when am opening the sandbox simulator the scroll is there, i need to move left and right, so in that scenario is it possible to make it static ,
i think you did't apply properly
regards
vijay
sample code
Regards
vijay
testingsfdc77@gmail.com
before the form tag starts, i.e till closing of head tag i applied , i.e from line number 2 to 44 I applied,
only ..
the thing is in simulator only it is not coming .
it worked ,
thanks