function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ranjitha Prabhu 10Ranjitha Prabhu 10 

The 'ShowAssistantInfo' page isn't referencing the Assistant Phone variable.

I am stuck up with this challenge in Visualforce mobile module,Where in i need to use Visualforce page that must display the assistant's phone number using a 'tel:' hyperlink. am getting the above error
EmilienGuichardEmilienGuichard
Could you please post your code ?
EmilienGuichardEmilienGuichard
Your hyperlink markup is strangely written.
Here is my page :
<apex:page standardController="Contact">
    {!contact.AssistantName} <a href="tel:{!contact.AssistantPhone}">{!contact.AssistantPhone}</a>
</apex:page>

 
Ranjitha Prabhu 10Ranjitha Prabhu 10
Thanks
E GUICHARD

 
Pavlo ShchurPavlo Shchur
Could somebody check wether my markup is appropriate or not?
<apex:page standardController="Contact" showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
    
    <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">
        <head>
            <meta charset="utf-8" />
            <meta http-equiv="x-ua-compatible" content="ie=edge" />
            <title>SLDS AssistantInfo Page in Salesforce Mobile</title>
            <meta name="viewport" content="width=device-width, initial-scale=1" />
            
            <apex:slds />
        </head>
        
        <body>
            
            <div class="slds-scope">
                <div class="myapp">
                    {!contact.AssistantName} <a href="tel:{!contact.AssistantPhone}">{!contact.AssistantPhone}</a>
                </div>
            </div>
            
        </body>
    </html>
</apex:page>
SAKTHIVEL MSAKTHIVEL M
Hi,

Use to create VF Page Called "ShowAssistantInfo" and Create a Action in Contact Object and Enable the Quick Action in Page Layout of Contacts.
 
<apex:page docType="html-5.0" standardController="Contact" title="Assistant Information">
<apex:variable var="AssistantName" value="{!contact.AssistantName}"/>
<apex:variable var="AssistantPhone" value="{!contact.AssistantPhone}"/>
<p>
Assistant: {!AssistantName}
</p>
<p>
Phone: <a href="tel:{!AssistantPhone}">{!AssistantPhone}</a>
</p>
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page
  <!-- End Default Content REMOVE THIS -->
</apex:page>

Thanks & Regards,
Sakthivel Madesh
KapavariVenkatramanaKapavariVenkatramana
@Pavlo Shchur

Yes it is Correct and Executed.