+ Start a Discussion
bsil bsilbsil bsil 

Custom Button in salesforce1

I have created custom detail button(added visualforc page) in account object, it is visible in salesforce 1, But when i click on the button it will not showing anything.

This visualforce page was enabled Available for Salesforce mobile apps option.
kiranmutturukiranmutturu
whats the code base u have in the page?
bsil bsilbsil bsil
Visualforce page:

<apex:page standardController="account" extensions="OrderStatusController" action="{!redirectDevice}" title="Order Status">
<apex:includeScript value="{!$Resource.sorttable}"/>
<style>
    .datePicker{
        display:none;
    }
   
    .rowline{
        border-bottom: 1px solid #ededed;
    }
   
    table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):after {
       content: " \25B4\25BE"
    }
</style>
<script>
    function chooseType(){
        document.getElementById('loading').style.display='';
        CallTypeSelected();
    }
</script>
<apex:form id="theForm">
    <span style='font-size:2.5em;color:#1D446B;'>&nbsp;&nbsp;&nbsp;&nbsp;Order Status</span>
    <br/>
   
    <apex:commandLink action="{!showAccount}">
        <button>Back to Account</button>
    </apex:commandLink>
   
    {!acct.Customer_Number__c} &nbsp; &nbsp; {!acct.name}  &nbsp; &nbsp; {!acct.BillingCity}  &nbsp; &nbsp; {!acct.BillingState}
    <br/><br/>

    <apex:actionFunction name="CallTypeSelected" action="{!typeSelected}" rerender="theForm"/>
    <apex:selectList value="{!accontType}" size="1" onchange="chooseType();">
        <apex:selectOptions value="{!items}"/>
    </apex:selectList>
    <span id='loading' style='border:1px solid red;padding:10px;display:none'>Loading, Please Wait . . .</span>
       
    <br/><br/>
   
    <table cellspacing="0" width="100%" class="sortable">
    <tr style="background-Color:#f2f3f3;cursor:pointer">
    <th style="border:1px solid #e0e3e5;">&nbsp;Entity&nbsp;</th>
    <th style="border:1px solid #e0e3e5;">&nbsp;Status&nbsp;</th>
    <th style="border:1px solid #e0e3e5;">&nbsp;Order No&nbsp;</th>
    <th style="border:1px solid #e0e3e5;">&nbsp;Customer PO&nbsp;</th>
    <th style="border:1px solid #e0e3e5;">&nbsp;Peril&nbsp;</th>
    <th style="border:1px solid #e0e3e5;">&nbsp;Order Date&nbsp;</th>
    <th style="border:1px solid #e0e3e5;">&nbsp;Delivery Date&nbsp;</th>
   
    <apex:outputPanel rendered="{!detailAccess}">
        <th style="border:1px solid #e0e3e5;">&nbsp;Order Value&nbsp;</th>
    </apex:outputPanel>
   
    </tr>
    <apex:repeat value="{!orders}" var="order">
        <tr >  
        <td class="rowline" align="center">&nbsp;{!order.entityCode__c}&nbsp;</td>
        <td class="rowline" align="center">&nbsp;{!order.statusText__c}&nbsp;</td>
        <td class="rowline" align="right">&nbsp;<apex:commandLink action="{!detail}" value="{!order.orderNo__c}"><apex:param name="order" value="{!order.orderNo__c}"/></apex:commandLink>&nbsp;</td>
        <td class="rowline" >&nbsp;{!order.custPo__c}&nbsp;</td>
        <td class="rowline" style='background-color:{!order.perilColor__c}'>&nbsp;{!if(order.inPeril__c,"Yes","")}&nbsp;</td>
        <td class="rowline" >&nbsp;
            <apex:outputText value="{0,date,MM'/'dd'/'yyyy}">
                <apex:param value="{!order.orderDate__c}" />
            </apex:outputText>     
        &nbsp;</td>
        <td class="rowline" >&nbsp;
            <apex:outputText value="{0,date,MM'/'dd'/'yyyy}">
                <apex:param value="{!order.deliveryDate__c}" />
            </apex:outputText>     
        &nbsp;</td>

        <apex:outputPanel rendered="{!detailAccess}">
            <td class="rowline" align="right">&nbsp;<apex:outputText value="{0, number,###,###,##0.00}"><apex:param value="{!order.openValue__c}" /></apex:outputText>&nbsp;</td>
        </apex:outputPanel>
       
        </tr>  
    </apex:repeat>
    </table>

</apex:form>
</apex:page>