• CRY
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 9
    Replies

Hi, 

I am using Salesforce generated web-to lead form HTML code in the company's webpage. 

Since I intend to validate my page and not use Salesforce features, I am required to use name/id attribute of an input tag to check the fields for empty etc..

 

I am successful in doing so with the standard fields since the name is a valid CDATA type. I am getting syntax errors for the custom fields if I try to do something like 00N80000003jEzY.focus(), since the name 00N80000003jEzY is considered invalid.
 
I this a bug in salesforce or am I doing something wrong? Please help.
 
Standard fields:

<label for="city">City</label><input  id="city" maxlength="40" name="city" size="20" type="text" /><br>

<label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" /><br>

<label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="text" /><br>

Custom fields:

Survey_QA:<textarea  id="00N80000003jEzY" name="00N80000003jEzY" type="text" wrap="soft"></textarea><br>

SI Campaign ID:<input  id="00N80000003jEz9" maxlength="100" name="00N80000003jEz9" size="20" type="text" /><br>

 

 

Thanks

  • July 28, 2009
  • Like
  • 0

Currently my development setup is as follows

 

User registers using the landing page. The landing page connects to salesforce to create a lead. Salesforce throws out a thankyou page using the URL I had supplied during the creation of web.

 

The issue is

The thank you page has a PHP script which sends out an email to the registered user. I am not able to access the fields from the landing page

 

eg: $email = $_POST[email]; // where email is a field in the landing page which I am trying to access in the thankyou page.

 

How do I go about resoving this issue?

 

Do I need to include the email field in the query string in thankyou page URL?

 

Is there a possiblity to access this field via salesforce?

 

Thanks !

Hi, 

I am using Salesforce generated web-to lead form HTML code in the company's webpage. 

Since I intend to validate my page and not use Salesforce features, I am required to use name/id attribute of an input tag to check the fields for empty etc..

 

I am successful in doing so with the standard fields since the name is a valid CDATA type. I am getting syntax errors for the custom fields if I try to do something like 00N80000003jEzY.focus(), since the name 00N80000003jEzY is considered invalid.
 
I this a bug in salesforce or am I doing something wrong? Please help.
 
Standard fields:

<label for="city">City</label><input  id="city" maxlength="40" name="city" size="20" type="text" /><br>

<label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" /><br>

<label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="text" /><br>

Custom fields:

Survey_QA:<textarea  id="00N80000003jEzY" name="00N80000003jEzY" type="text" wrap="soft"></textarea><br>

SI Campaign ID:<input  id="00N80000003jEz9" maxlength="100" name="00N80000003jEz9" size="20" type="text" /><br>

 

 

Thanks

  • July 28, 2009
  • Like
  • 0