avoid repetition on get_form date
diff --git a/erpnext/www/book-appointment/index.js b/erpnext/www/book-appointment/index.js
index 19fc704..6bd868b 100644
--- a/erpnext/www/book-appointment/index.js
+++ b/erpnext/www/book-appointment/index.js
@@ -208,10 +208,7 @@
function get_form_data() {
contact = {};
- contact.name = document.getElementById('customer_name').value;
- contact.number = document.getElementById('customer_number').value;
- contact.skype = document.getElementById('customer_skype').value;
- contact.notes = document.getElementById('customer_notes').value;
- contact.email = document.getElementById('customer_email').value;
+ let inputs = ['name', 'skype', 'number', 'notes', 'email'];
+ inputs.forEach((id) => contact[id] = document.getElementById(`customer_${id}`).value)
window.contact = contact
}