Jump to content

perland

Members
  • Content Count

    10
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    perland got a reaction from Heineperson in Print Button   
    If you just want to print the <form id="caspioform" ... a simple way will be to create a footer in your report form and copy the code below.
     
     
    <input type="button" onclick="printDiv('caspioform')" value="Print caspioform" />

     <script>
    function printDiv(divName) {
         var printContents = document.getElementById(divName).innerHTML;
         var originalContents = document.body.innerHTML;
         document.body.innerHTML = printContents;
         window.print();
         document.body.innerHTML = originalContents;
    }

    </script>

    VK.
  2. Like
    perland got a reaction from Sunlark in Print Button   
    If you just want to print the <form id="caspioform" ... a simple way will be to create a footer in your report form and copy the code below.
     
     
    <input type="button" onclick="printDiv('caspioform')" value="Print caspioform" />

     <script>
    function printDiv(divName) {
         var printContents = document.getElementById(divName).innerHTML;
         var originalContents = document.body.innerHTML;
         document.body.innerHTML = printContents;
         window.print();
         document.body.innerHTML = originalContents;
    }

    </script>

    VK.
  3. Like
    perland got a reaction from Anthonyjulk in Timestamp on a change event in a Dropdown menu   
    Hello,
    I have a details page with an update button where I would like to be able to update the value of a Text Field with the current date whenever a user changes the value of an option in a Dropdown menu and clicks update.
    The code below below is not working. Any help will be very much appreciated.
    Thank You.

    function getT()
    {
    document.getElementById("EditRecordpatient_status").onchange == document.getElementById("EditRecordpatient_status_change_timestamp").value = '[@cb:Timestamp]';
    }
    document.getElementById("Mod0EditRecord").onclick=getT;

×
×
  • Create New...