0

I am trying to add some custom fields in KrayinCRM. I can do that by adding attributes, but I need to display and change some field of other tables and pass it to another table. So basically, I want to display three date pickers in KrayinCRM. I have gone through the Document of krayinCRM but could not do that. I have tried following the code, but it doesn't work.

import Flatpickr from "flatpickr";

export default {

    mounted() {
        flatpickr('#datepicker')

    }
};

This is KrayinCRM which I am using. https://github.com/krayin/laravel-crm

I have tried Jquery also like this:

window.onload = function() {
    if (window.jQuery) {
        // jQuery is loaded  

    } else {
        // jQuery is not loaded

    }
}
$(document).ready(function() {
    $("#test_date").flatpickr();
});

But that also doesn't work.

Trying to display three date pickers that the user can change, and the form will submit; in the post side backend, I will get that date and insert it into another table after some calculation.

Karl Hill
  • 12,937
  • 5
  • 58
  • 95

0 Answers0