I have a custom form with a postcode/zipcode field. If i press a button get address it finds the address using using this postcode.
I want to pass the values of this address into corresponding field in contact form 7. My current custom form runs above the contact form 7.
This is how i display the value :
<label>Street: </label><input type="text" name="street1" value="<?php echo $street1; ?>"/></br>
<label>Town: </label><input type="text" name="town1" value="<?php echo $town1; ?>"/></br>
<label>County: </label><input type="text" name="county1" value="<?php echo $county1; ?>"/></br>
<label>Postcode: </label><input type="text" name="postcode1" value="<?php echo $postcode1; ?>"/></br>
I am using jquery to get the address.
I need to pass these value to contact form 7 address fields.
Any help would be appreciated.