Streaming live at 10am (PST)

Forms with input id= " example "


#1

I am working on a project that needs specific form id's, below is an example of the code.

Without having to export the website out, how would I add this custom ID inside of the webflow UI?

Example:
<tr>
<td align="left" valign="top" height="25"><span class="label">Country:</span></td>
<td class="content" valign="top" height="25"><input id="country" type="text" maxlength="40" name="country" size="30" /></td>
</tr>

What I need to make sure my form has: input id="country".

I saw where you could add custom input data, but when I do that it puts it as input-id instead if input id?

Thanks guys.

@cyberdave


Here is my public share link: LINK
(how to access public share link)


#2

Why you didn't try to use ID option that every element has? (check the SETTINGS panel)


#3

I did, here is what i did for for demo Country one. Will the below work?


#4

You don't need any custom attributes. Only id at the top.


#5

Ok great. Thank you as always Anna!

I will let you know if issues happen.

BTW, what is that custom code for?


#6

It is just the html structure which using tables (tr - table row, td - standard table cell)


#7

I mean this in webflow.

Or is that what you are referring too?

I know the table glory days with standard HTML :stuck_out_tongue:


#8

:smiley: Sorry for misunderstanding

Most common usage of custom attributes is containing data-attributes for some jQuery plugins. Unfortunately, Webflow does not allow us to use there some standard attributes, something like "value" for radio buttons or click attributes for buttons because they are reserved for Webflow backend code.


#9

No worries thank you!

Another issue.. I need to place this in the action: https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8 However it's too long evidently and webflow won't let me.

What should I do?


#10

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.