CMS Development

DanielSanchez
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Customize the form fields ID

We need to standardize the form input fields ID. For us, it would be very important that the form ID is not inserted next to the input field ID. With that I have 2 questions:

 

1) is it possible to define / somehow change a fixed ID for each input field?

 

2) If we manage to edit the ID of a field, would that imply problems with parameterization of leads with forms?

 

DanielSanchez_0-1636478086009.png

 

Thank you!

1 Reply 1
Indra
Guide | Elite Partner
Guide | Elite Partner

Customize the form fields ID

Hi @DanielSanchez,

 

Why would you want to change the input ID? If you want to add extra data?

Perhaps the use of custom attributes like data-id="name" will work for your problem.

 

1) is it possible to define / somehow change a fixed ID for each input field?

You could do this with javascript. But I don't recommand it looking at your second question

 

2) If we manage to edit the ID of a field, would that imply problems with parameterization of leads with forms?
I'm not sure it would effect it. You could give it a go with a trial and error and test if forms do get submitted.


Vet Digital - The Growth Agency | HubSpot Solutions Partner Agency

Did my post solve your question? Help the community by marking it as a solution