Skip to main content
All CollectionsFAQs
How do I get the my Databowl Landing Page Field in JavaScript?
How do I get the my Databowl Landing Page Field in JavaScript?

If you're wanting to target your Databowl LP Field in JS, maybe through field ID, then this is for you.

James Dodd avatar
Written by James Dodd
Updated over 2 years ago

All Databowl Landing Pages Fields are prepended with the id of the form:

eg: in this example the form id is form-1,

A field for F_1_email, will have an ID of: form-1_F_1_email

<form id="form-1">
<fieldset></fieldset>
<input type="submit" value="Submit Form 1" />
</form>

And in this example where we are using form-2

A field for F_1_email, will have an ID of: form-2_F_1_email

<form id="form-2">
<fieldset></fieldset>
<input type="submit" value="Submit Form 2" />
</form>

You should then be able to target it with the normal methods eg:

A field for F_1_email, on form-1 with JQuery would be: $('#form-1_F_1_email')


​


πŸš€ Need More assistance?

If you're stuck or if this isn't something you or your team is comfortable with, then please open a new chat/ticket (chat icon in the bottom right of the screen) or email support@databowl.com.

We're here to assist with any questions you have, and if required we can quote on actioning work like this for as part of our Marketing Services.

Did this answer your question?