Skip to main content

Hi everyone,

I ve created a custom field in the Case Apex Class. It is a TextAreaField with name CampoTest and API name CampoTest__c.

Now I want to add it to Web-To-Case HTML. So, int hte HTML Generator, I move the field from Available Field to Selected and I click on Generate. The HTML is generated and for my field this line is generated:

<textarea  id="00N0D00000160V6" name="00N0D00000160V6" type="text" wrap="soft"></textarea>  

As you can see, the id and the name is "strange". 

Well, I need to add about ten custom fields... And I have two different environment (dev and prod) on salesforce. 

This is a problem because I have to import the generated HTML on my website. Infact I should change id/name of dev environment with id/name of prod environment.

Is it possible to change the id of my custom field? 

Or is it possible use for example the API name 

of my custom field in the generated html?

 

I hope I have explained well my problem.

Thank you
1 réponse
0/9000