but I also want to change the field “Province / Region” to “State” for Australian use.
I tried to add the line “$(”.kn-input-address label[for=‘province / region’]“).text(“State”);” at the end but it does not work. I also tried with double quotes $(“.kn-input-address label[for=‘“province / region”’]”).text(“State”); and also wild cards but without success.
Thanks Brad! Yes I wouldn’t have guessed that one. Where do I find the real field names?
Also this question follows on, or should I create a new post? I have two Address fields, one for the street address and the second for the postal address. Is it possible to rename one state field as “Postal State” and leave the other as is? At the moment, the code is ‘one size fits all’. I would do the same for Suburb and Postcode too.
Hey @NickF should be possible - comes down to targeting the right CSS selector and I’d encourage anyone dabbling in CSS and JS with Knack to read through knack’s help page Identifying Elements to Change.
So a stab at two different fields and to vary the text based on inspecting a form of mine with address fields: