Populating Caldera Form Fields with WooCommerce Checkout Fields
-
Hello,
I have created a city field in a caldera form and wanted to autopopulate it with Woocommerce’s city field.
For that, I used:
<script> jQuery(document).ready(function($) { jQuery('#fld_9255841_1').keyup(function(){ var fName = jQuery('#fld_9255841_1').val(); var cmpName = fName; jQuery('#billing_city_field').val(cmpName); }); </script>
In the above code
#fld_9255841_1
is the caldera’s field and#billing_city_field
is the Woocommerce’s default field. I thought it would autopopulate if an existing user fills the form, but it is not.Could any one help me? I tried to use the snippet in theme’s file and in caldera’s html field. No luck in the both ways.
I was unsuccessful with the system tags though. Any help is appreciated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Populating Caldera Form Fields with WooCommerce Checkout Fields’ is closed to new replies.