Second contact box instead of fax box

hi I would like to change the fax box to “other contact number” box and also have this info automatically fill in the boxes at the bottom of the page rather than copying and pasting them in
is this possible ?

Hi @Kerry_Wragg

Firstly, the fax number box is just a text box - you’re welcome to enter any phone number you wish here.

Secondly, if you have a Power User Subscription then the second part is more than possible with a bit of code:

$(document).ready(function() {
   $("#txttel").change(function() {
          $("#txttel1").val($(this).val()); 
   });
   $("#txtfax").change(function() {
          $("#txttel2").val($(this).val()); 
   });
});

This can be added under Account Settings > Design Customisation > Advanced CSS & HTML Customisation > Custom Scripts.

If you wanted to make sure the bottom boxes were empty first before overriding them, a simple check can be added:

$(document).ready(function() {
   $("#txttel").change(function() {
        if($("#txttel1").val() == "") {
            $("#txttel1").val($(this).val()); 
        }
   });
   $("#txtfax").change(function() {
        if($("#txttel2").val() == "") {
            $("#txttel2").val($(this).val());
        }
   });
});

Hope that helps :slight_smile:

This topic was automatically closed after 7 days. New replies are no longer allowed.