Библиотека Print.js печатает HTML-форму, но не печатает значения полей ввода - PullRequest
0 голосов
/ 11 января 2019

Я использую библиотеку print.js для печати формы HTML. он печатает поля HTML и формы, но поля формы не содержат заданных значений в распечатанном PDF.

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://printjs-4de6.kxcdn.com/print.min.js"></script>
    
    <form id="eqform" method="post" action="#">
        {{csrf_field()}}
        <div class="tab-content" id="pills-tabContent">
            @includeif('doctor.partials.patientinfo')
            @includeif('doctor.partials.14questions')
            @includeif('doctor.partials.question1')
            @includeif('doctor.partials.question2')
            @includeif('doctor.partials.question3')
            @includeif('doctor.partials.question4')
            @includeif('doctor.partials.question5')
            @includeif('doctor.partials.question6')
            @includeif('doctor.partials.question7')
            @includeif('doctor.partials.question8')
            @includeif('doctor.partials.question9')
            @includeif('doctor.partials.question10')
            @includeif('doctor.partials.question11')
          @includeif('doctor.partials.result')
          <div class="print text-center">
            <button class="btn btn-success" type="button" onclick="printJS('eqform', 'html')">Print</button>
          </div>
        </div>
      </form>
      

      
      

** Частицы содержат разные входные поля

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...