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
AngeliqueAngelique 

case number is 06911137 - NEED HELP wit writing CORRECT hidden field code

Dear SFDC,

the blue text below is my original case.   I beleive the syntax in the code, the original rep. helped me with, is incorrect.  I have a unique Web to Lead = TRUE code written as a hidden field, that is supposed to be "checked" every time we get direct Lead entries into SFDC from our site.  Currently this field is not being automatically checked each time.  It's just an empty field.

 

I was instructed to give this code to our web develpers: <input type=hidden name="00N00000000X0xY" id="00N00000000X0xY" value="CustField"> 

 

I think it's too generic and incorrect.  Please help me with the  correct code.  

 

Many thanks!


 

Dear Angelique,

Here is some information related to the support call we had today

When using salesforce.com's Web to Lead and Web to Case, you can use hidden HTML parameters to set the values of your lead or case fields. The use of hidden parameters prevents your end-users from changing the value of those fields.

To pass a hidden value, use the following HTML tags:

<input type=hidden name="nameofhiddenfield" id="nameofhiddenfield" value="XXXX">

For example, if you want all cases captured via the Online Case Capture interface to have a Priority of High, then you would use the following HTML syntax:

<input type=hidden name="Priority" id="Priority" value="High">

Custom fields can also be passed as hidden fields. However, this may require assistance from the Administrator of the Organization to attain the ID number of the custom field. The correct syntax to pass a hidden custom field would then be:

<input type=hidden name="00N00000000X0xY" id="00N00000000X0xY" value="CustField">

Your case number is 06911137. Please let me know if there is anything else that I can help you with and I will be more than glad to assist you.


I hope you have a great day! Please contact us at any time at 1-800-667-6389 option 2.


Thank you,
Norman Carranza Rojas

*werewolf**werewolf*

Angelique,

 

This is not Salesforce.com's support forum, this is a public internet forum.  To contact Salesforce.com Support about an existing case, you'll want to go through the Help & Training link within Salesforce.com itself.  You may want to remove your personal information from this post so as not to be targeted by spammers, since this post is public.

 

To your question, the support rep has steered you correctly -- the code he gave you for that hidden field is in fact correct.  I'm not sure what you feel is wrong about it, but that's what it's supposed to be.

*werewolf**werewolf*

But you'll have to replace the field ID in there (the string starting with 00N) with your actual field ID.  The one he gave you is in fact generic.

 

To find the field ID, go to Lead->Fields in setup and click on the custom field you want to be filled by this hidden input.  Look in the URL bar now -- you'll notice it ends with an ID starting with 00N.  Copy that out, and replace the 00N IDs in the sample with the 00N of your specific field.

AngeliqueAngelique

Hello,

thanks for your reply.  I have followed your instructions and found this to be my code:

00NU0000002tEvp?setupid=LeadFields

 

Should the field ID only be the combo of letters and numbers in blue above?  Or shold it include the letters up to the "?"

*werewolf**werewolf*

Just the letters and numbers, exclude the question mark and everything after it.