You are viewing limited content. For full access, please sign in.

Question

Question

Forms - access individual fields of the address element

asked on May 4, 2017 Show version history

We have a customer using the Address element in forms because it does some cool Google Maps stuff when they use the Mobile app. The problem is there is no field ID's or options to add classes now to these fields and they want to use the field data for other purposes.

0 0

Answer

SELECTED ANSWER
replied on May 5, 2017 Show version history

Each sub fields for Address has their own class: Address1, Address2, City.... You can add class to the whole Address field, and use that class and the built in classes on the sub fields to locate the sub field, the selector liks "$('.addresscss .Address1')"

1 0
replied on May 6, 2017

Cool, I had found the Address1 classes but didn't know how to access a specific address object's fields. Thank you!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.