• satihillyer
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 8
    Replies
Is it possible to retrieve list views via the REST API? Trying to filter a list of leads/contact on a mobile device (using the already created list views) and it doesn't seem like the metadata API will help here.

Any ideas?
Any idea why this is not rendering the page on Salesforce1?

<apex:page >
  <script>
      if ( (typeof sforce != 'undefined') && (sforce != null) ) {
          sforce.one.navigateToList('00BG0000008Wtyc', 'AllOpenLeads', 'Lead');
      }
  </script>
</apex:page>

I just want to redirect to the all open leads list view.
Does anyone have a simple vf page to access the native video camera on an iOS device through a Salesforce1 publisher action?
I've setup web-to-lead and it all seems to be working, except the redirect. When I click Submit, the lead data is sent to my org, and then it opens a new tab and redirects to the URL defined. However, the original page is still there with all of the fields still filled. I want the redirect to happen on the original page, not a new tab.

I'm not sure what I've done wrong. Below is my code. I tried this on multiple computers (mac/pc) and browsers (chrome, safari, ff) - all with the same results above. Any ideas?

Thanks,
Sati


<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: Please add the following <META> element to your page <HEAD>.      -->
<!--  If necessary, please modify the charset parameter to specify the        -->
<!--  character set of your HTML page.                                        -->
<!--  ----------------------------------------------------------------------  -->

<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">

<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: Please add the following <FORM> element to your page.             -->
<!--  ----------------------------------------------------------------------  -->

<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

<input type=hidden name="oid" value="00D50000000JOCj">
<input type=hidden name="retURL" value="http://www.eversauce.com">
<input type="hidden" name="lead_source" value="web"/>

<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
<!--  these lines if you wish to test in debug mode.                          -->
<!--  <input type="hidden" name="debug" value=1>                              -->
<!--  ----------------------------------------------------------------------  -->

<p><span style="font-size: small;"><b><label for="first_name">First Name</label></b></span><br /><input id="first_name" type="text" name="first_name" size="20" maxlength="40" /></p>
<p><span style="font-size: small;"><b><label for="last_name">Last Name</label></b></span><br /><input id="last_name" type="text" name="last_name" size="20" maxlength="80" /></p>
<p><span style="font-size: small;"><b><label for="email">Email</label></b></span><br /><input id="email" type="text" name="email" size="20" maxlength="80" /></p>
<p><span style="font-size: small;"><b><label for="phone">Phone</label></b></span><br /><input id="phone" type="text" name="phone" size="20" maxlength="40" /></p>
<p><span style="font-size: small;"><b><label for="company">Company</label></b></span><br /><input id="company" type="text" name="company" size="20" maxlength="40" /></p>
<p><span style="font-size: small;"><b><label for="description">Comment</label></b></span><br /><textarea name="description"></textarea></p>
<p><input type="submit" name="submit" /></p>

</form>
Does anyone have a simple vf page to access the native video camera on an iOS device through a Salesforce1 publisher action?
Is it possible to launch a URL from a chatter action? So when I click a MyChatterAction it redirects the user to www.google.com for instance.
  • May 09, 2014
  • Like
  • 0
Any idea why this is not rendering the page on Salesforce1?

<apex:page >
  <script>
      if ( (typeof sforce != 'undefined') && (sforce != null) ) {
          sforce.one.navigateToList('00BG0000008Wtyc', 'AllOpenLeads', 'Lead');
      }
  </script>
</apex:page>

I just want to redirect to the all open leads list view.
I've setup web-to-lead and it all seems to be working, except the redirect. When I click Submit, the lead data is sent to my org, and then it opens a new tab and redirects to the URL defined. However, the original page is still there with all of the fields still filled. I want the redirect to happen on the original page, not a new tab.

I'm not sure what I've done wrong. Below is my code. I tried this on multiple computers (mac/pc) and browsers (chrome, safari, ff) - all with the same results above. Any ideas?

Thanks,
Sati


<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: Please add the following <META> element to your page <HEAD>.      -->
<!--  If necessary, please modify the charset parameter to specify the        -->
<!--  character set of your HTML page.                                        -->
<!--  ----------------------------------------------------------------------  -->

<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">

<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: Please add the following <FORM> element to your page.             -->
<!--  ----------------------------------------------------------------------  -->

<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

<input type=hidden name="oid" value="00D50000000JOCj">
<input type=hidden name="retURL" value="http://www.eversauce.com">
<input type="hidden" name="lead_source" value="web"/>

<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
<!--  these lines if you wish to test in debug mode.                          -->
<!--  <input type="hidden" name="debug" value=1>                              -->
<!--  ----------------------------------------------------------------------  -->

<p><span style="font-size: small;"><b><label for="first_name">First Name</label></b></span><br /><input id="first_name" type="text" name="first_name" size="20" maxlength="40" /></p>
<p><span style="font-size: small;"><b><label for="last_name">Last Name</label></b></span><br /><input id="last_name" type="text" name="last_name" size="20" maxlength="80" /></p>
<p><span style="font-size: small;"><b><label for="email">Email</label></b></span><br /><input id="email" type="text" name="email" size="20" maxlength="80" /></p>
<p><span style="font-size: small;"><b><label for="phone">Phone</label></b></span><br /><input id="phone" type="text" name="phone" size="20" maxlength="40" /></p>
<p><span style="font-size: small;"><b><label for="company">Company</label></b></span><br /><input id="company" type="text" name="company" size="20" maxlength="40" /></p>
<p><span style="font-size: small;"><b><label for="description">Comment</label></b></span><br /><textarea name="description"></textarea></p>
<p><input type="submit" name="submit" /></p>

</form>