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.
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.
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)
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”);
});