• Lori Stipp
  • NEWBIE
  • 40 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 6
    Replies
I am trying to use the new reCAPTCHA capability on a Web-to-Lead contact form that is being displayed on a Weebly website. I would like to enable my Submit button based on successful result form the reCAPTCHA. Right now, the user can still click the Submit even if they haven't check the reCAPTCHA checkbox. A lead isn't actually created, which is good, but it just goes on to my "Thank you" page, giving the user the impression they have submitted their contact  info. 

Here is the HTML at the end of my Web-to-Lead form that handles the reCAPTCHA. callValidation() is a function that checks to see whether the user has entered required fields in the form.
 
<div class="g-recaptcha" data-sitekey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></div><br>
<div id="button">
  <input id="sell_house_submit" type="submit" name="submit" value="Get My Free Quote!" onclick="return callValidation();">
 </div>

I'm not an HTML/Javascript wizard. Can anyone help me?

TIA!
In Process Builder, I've created a process that, when a new Account is created, creates a new Contact record, whose fields' values come from custom fields on my Account object. My process works as expected as far as creating the new Contact with the field values that I want. However, I would like the Contact to lookup to that Account. When I try to assign the following Contact field in the Process Builder

Account Id = [Account__c].Id

I get the following error when I try to create an Account and trigger my process.

Workflow Action Failed to Trigger Flow
The record couldn’t be saved because it failed to trigger a flow. 
A flow trigger failed to execute the flow with version ID 301j0000000TsHi. 
Contact your administrator for help. 


I assume this is because the Account hasn't actually been inserted yet and has no ID, but how do I get around this. It seems like a very common scenario to want to relate your newly created records to the "triggering" record.
Thanks in advance,
Lori
I have looked and looked and can't find an answer to this problem. Any ideas?

I have a Visualforce HTML email template that uses apex:outputtext to render a number of fields conditionally, like this:

<apex:outputText value="Survey Name: {!relatedTo.Survey__r.Name}"
                  rendered="{!IF(relatedTo.Survey__r.Yes_or_No__c ='Yes', TRUE,FALSE)}"/><br/>

I have many such apex:outputtext statements in a row. Ideally, I'd like the <br/> behavior to be embedded inside the value string, so it is also rendered conditionally. Otherwise, if many of my fields are not displayed because of the value of their rendered attribute, I get a lot of extranous blank space in my generated email.

I would like to be able to do something like:

<apex:outputText value="Survey Name: {!relatedTo.Survey__r.Name}\n\r"
                  rendered="{!IF(relatedTo.Survey__r.Yes_or_No__c ='Yes', TRUE,FALSE)}"/><br/>

Can anyone help?
Thanks in advance!!!
 
I have looked everywhere but I haven't found an answer, so here goes....

I have replaced a custom object's Detail page with a VF page that displays the usual object details, and then displays the related lists in a tab panel, where each related list is in a separate tab. I've found numerous examples of that, and it all works great.

However, the default font size of the items in the related lists is quite small (smaller than what's used in standard SF). How can I control the styling of
apex:relatedList? There is no class attribute on apex:relatedList, only id. But I've tried specifying an id and adding some css to style it, but nothing changes.


Here's an excerpt from my code:

<apex:page standardController="Quote__c" showHeader="true"  sidebar="true" tabStyle="Quote__c" >
     
    <style>
        .activeTab {font-size:12px; background-color: #236FBD; background-image:none; color:white;  border: 2px solid; border-radius: 10px;  box-shadow: 3px 3px 5px #BEBEBE;}
        .inactiveTab {font-size:12px; background-color: #BEBEBE; background-image:none; border-radius: 10px;}
    </style>

   ....display the Quote__c detail panel here....

  .... here are the tabbed related lists....

<apex:tabPanel switchType="client" selectedTab="tabQuoteContact"
                  id="QuoteTabPanel" tabClass="activeTab"
                  inactiveTabClass="inactiveTab" >
                 
    <apex:tab label="Quote Contacts" name="QuoteContacts"
                id="tabQuoteContact" >
        <apex:relatedList list="Quote_Contacts__r"  />                   
    </apex:tab>
     
    <apex:tab label="Order Information" name="OrderInfo" id="tabOrderInfo">
        <apex:relatedList list="Orders__r" />          
    </apex:tab>

...more of the same for other related lists of Quote__c....

I am trying to use the new reCAPTCHA capability on a Web-to-Lead contact form that is being displayed on a Weebly website. I would like to enable my Submit button based on successful result form the reCAPTCHA. Right now, the user can still click the Submit even if they haven't check the reCAPTCHA checkbox. A lead isn't actually created, which is good, but it just goes on to my "Thank you" page, giving the user the impression they have submitted their contact  info. 

Here is the HTML at the end of my Web-to-Lead form that handles the reCAPTCHA. callValidation() is a function that checks to see whether the user has entered required fields in the form.
 
<div class="g-recaptcha" data-sitekey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></div><br>
<div id="button">
  <input id="sell_house_submit" type="submit" name="submit" value="Get My Free Quote!" onclick="return callValidation();">
 </div>

I'm not an HTML/Javascript wizard. Can anyone help me?

TIA!
Hi,
I have successfully added the reCAPTCHA widget to the lead submission form after registering domain and receiving a public and private key pair. (Documentation: https://help.salesforce.com/articleView?id=customizesupport_web_to_case_enable_recaptcha.htm&type=0&language=en_US&release=206.9)
Spring'17 release note: https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_sales_web_to_lead_recaptcha.htm

During testing this functionality, I observed that an individual can bypass the recaptcha and submit the form. There's no validation that requires the user to click "I'm not a robot" in order to post the data.

My question is:
How is the "Verifying the user's response" process done in Salesforce?  Ref. : https://developers.google.com/recaptcha/docs/verify  

Do I need to create an Apex Class for this?
Has anyone successfully implemented this feature.  Salesforce Support was unable to help.

Any help is greatly appreciated!
 
I'm trying to enable spam filtering on a Web-to-Lead form using the Create a Web-to-Lead Form.

This was quite tricky to start with because the pop-up to add an API Key Pair disappears if you click away from it! I managed to manually enter the secret as it was impossible to copy and paste it. Then I made a typo and found it was impossible to edit the key, as the page for editing keys is broken. The only way was to delete the key and add it again through the disappearing pop-up. 

Now I've included the form in our site, but the recaptcha does nothing - if I ignore and click submit, the form submits to https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8 anyway which is just a blank page. 

I know this is new functionality but it doesn't seem like it is working at all?
In Process Builder, I've created a process that, when a new Account is created, creates a new Contact record, whose fields' values come from custom fields on my Account object. My process works as expected as far as creating the new Contact with the field values that I want. However, I would like the Contact to lookup to that Account. When I try to assign the following Contact field in the Process Builder

Account Id = [Account__c].Id

I get the following error when I try to create an Account and trigger my process.

Workflow Action Failed to Trigger Flow
The record couldn’t be saved because it failed to trigger a flow. 
A flow trigger failed to execute the flow with version ID 301j0000000TsHi. 
Contact your administrator for help. 


I assume this is because the Account hasn't actually been inserted yet and has no ID, but how do I get around this. It seems like a very common scenario to want to relate your newly created records to the "triggering" record.
Thanks in advance,
Lori
I have looked and looked and can't find an answer to this problem. Any ideas?

I have a Visualforce HTML email template that uses apex:outputtext to render a number of fields conditionally, like this:

<apex:outputText value="Survey Name: {!relatedTo.Survey__r.Name}"
                  rendered="{!IF(relatedTo.Survey__r.Yes_or_No__c ='Yes', TRUE,FALSE)}"/><br/>

I have many such apex:outputtext statements in a row. Ideally, I'd like the <br/> behavior to be embedded inside the value string, so it is also rendered conditionally. Otherwise, if many of my fields are not displayed because of the value of their rendered attribute, I get a lot of extranous blank space in my generated email.

I would like to be able to do something like:

<apex:outputText value="Survey Name: {!relatedTo.Survey__r.Name}\n\r"
                  rendered="{!IF(relatedTo.Survey__r.Yes_or_No__c ='Yes', TRUE,FALSE)}"/><br/>

Can anyone help?
Thanks in advance!!!
 
I have looked everywhere but I haven't found an answer, so here goes....

I have replaced a custom object's Detail page with a VF page that displays the usual object details, and then displays the related lists in a tab panel, where each related list is in a separate tab. I've found numerous examples of that, and it all works great.

However, the default font size of the items in the related lists is quite small (smaller than what's used in standard SF). How can I control the styling of
apex:relatedList? There is no class attribute on apex:relatedList, only id. But I've tried specifying an id and adding some css to style it, but nothing changes.


Here's an excerpt from my code:

<apex:page standardController="Quote__c" showHeader="true"  sidebar="true" tabStyle="Quote__c" >
     
    <style>
        .activeTab {font-size:12px; background-color: #236FBD; background-image:none; color:white;  border: 2px solid; border-radius: 10px;  box-shadow: 3px 3px 5px #BEBEBE;}
        .inactiveTab {font-size:12px; background-color: #BEBEBE; background-image:none; border-radius: 10px;}
    </style>

   ....display the Quote__c detail panel here....

  .... here are the tabbed related lists....

<apex:tabPanel switchType="client" selectedTab="tabQuoteContact"
                  id="QuoteTabPanel" tabClass="activeTab"
                  inactiveTabClass="inactiveTab" >
                 
    <apex:tab label="Quote Contacts" name="QuoteContacts"
                id="tabQuoteContact" >
        <apex:relatedList list="Quote_Contacts__r"  />                   
    </apex:tab>
     
    <apex:tab label="Order Information" name="OrderInfo" id="tabOrderInfo">
        <apex:relatedList list="Orders__r" />          
    </apex:tab>

...more of the same for other related lists of Quote__c....