Jalan Raya Semer No.883, Kerobokan, Bali

` get('get_appointment_custom_field', {user_role: type}, true) .then((res) => { customFieldEle.classList.remove("kivi-center"); customFieldEle.innerHTML = '' if(res.data.status !== undefined && res.data.status){ customFieldEle.innerHTML = res.data.data } }).catch((error) => { customFieldEle.classList.remove("kivi-center"); customFieldEle.innerHTML = '' console.log(error); }) } function kivicareCustomFieldsData(ele){ var custom_fields = { }; $.each($('#'+ele).find('select, textarea, :input:not(:checkbox)').serializeArray(), function() { custom_fields[this.name] = this.value; }); var temp = []; var temp2= ''; $.each($('#'+ele).find(':input:checkbox').serializeArray(), function(key,value) { if(temp2 !== value.name){ temp = []; } temp.push(value.value) custom_fields[value.name] = temp; temp2 = value.name; }); return custom_fields; } function kcShowErrorMessage(message){ let ele = $('#kivicare_server_error_msg'); ele.css('display',''); ele.empty(); ele.append(message) setTimeout(() => { ele.css('display','none'); }, 3000); } function kivicareShowSuccessMessage(message){ let ele = $('#kivicare_success_msg'); ele.css('display',''); ele.text('') ele.text(message) setTimeout(() => { ele.css('display','none'); }, 3000); } function kivicareButtonTextChange(ele,txt,disabled){ $(ele).find('button').text(txt); $(ele).find('button').prop('disabled',disabled); } })(window.jQuery) } });