I don't find the record type in the "view page source" code of the website for which we have an existing web to lead form.

Is there any way to identify how a website is associated with a lead record type.

2 Answers 2


The record type will be determined by by one of the following:

  • The Record Type in the Web-to-Lead form.
  • The Default Record Type for the new Lead Owner, if assigned to a user by assignment rule.
  • The Default Record Type for the Queue's Owner, if assigned to a queue by assignment rule.
  • The Default Record Type for the Default Lead Creator, if nothing else applies.
  • Any triggers, workflows, or process builders that may have been configured.

Since there's multiple places to set the Record Type, there's no one place you can go to determine what the Record Type will end up being. You'll have to look at the total system configuration if you're not getting the expected result.


This is what we write when we generate code in salesforce:

<input type=hidden name="recordType" id="recordType" value="XXXXXXXXXXXXXXX"> //where XXXXXXXXXXXXXXX is recordtypeid

which is then further added to the website's form. I just checked, that page source shows the same line as I have written above.

Please check following salesforce documention:


Let me know this helps!

  • i couldnt find anything by the name "recordType" in my page source.
    – Sowparnika
    Jun 22, 2018 at 8:47
  • @Sowparnika are you able to find anything with tag <input type=hidden> ??? Jun 22, 2018 at 9:05
  • I just Updated answer,why its down voted Jun 22, 2018 at 9:06
  • @AnnappaPH, the ask of this question is not what you answered! Jun 22, 2018 at 9:07
  • Have you checked the link.what I had given.Its already available same thing you posted here.I have provided few steps and check my first link whats the wrong in that Jun 22, 2018 at 9:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .