The appointment request for General, Family and Cosmetic Dentist Bakersfield, CA |... can be taken as a reference

Here we added a separate field a checkbox to which if checked displays the contact number.


User-uploaded Image
User-uploaded Image

We added a custom JS function todo the following

$(".answer").hide();

$(".phone").click(function() {

if($(this).is(":checked")) {

$(".answer").show();

} else {

$(".answer").hide();

}

});


The button click action on class 'phone' triggers 'answer' class to show which contains the phone number.