# Omit Address 2 field

**URL:** <https://forums.knack.com/t/omit-address-2-field/13820>\
**Category:** Knacksters' Idea Lab\
**Created:** [February 24, 2023, 5:43pm UTC](https://forums.knack.com/t/omit-address-2-field/13820 "2023-02-24T17:43:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KimDion38026](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@KimDion38026](https://forums.knack.com/u/KimDion38026)\
**Post date:** [February 24, 2023, 5:43pm UTC](https://forums.knack.com/t/omit-address-2-field/13820/1 "2023-02-24T17:43:27Z")

</div>

Is there any java or code that I can use to remove the address line 2 from my forms?

They bulk my forms up and are unnecessary.

---

<div class="post-metadata">

**Author:** ![LeighBerre96926](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/leighberre96926/32/4896_2.png) [@LeighBerre96926](https://forums.knack.com/u/LeighBerre96926)\
**Post date:** [February 26, 2023, 10:26am UTC](https://forums.knack.com/t/omit-address-2-field/13820/2 "2023-02-26T10:26:59Z")

</div>

I’m sure there probably is. but I’ll leave that for a javascript guru. I just changed its descriptor to be “Unit or Building” which makes it somewhat more useful. (for example Warehouse 7)

![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/f/fa0710a2005c7a26f690570845f3de37a55b7cfd.png)

The code to do that (and change the other address field names) is:

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Modifies the labels in Address fields  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/  
$(document).on(‘knack-scene-render.any’, function(event, scene) {  
$(“.kn-input-address label[for=‘street2’]”).text(“Unit or Building”);  
$(“.kn-input-address label[for=‘city’]”).text(“Suburb or City”);  
$(“.kn-input-address label[for=‘zip’]”).text(“Postcode”);  
$(“.kn-input-address label[for=‘state’]”).text(“STATE”);  
});
